How to use Custom CDT with dataset

Hi ,

 

I am very new to Appian. I am stuck on one requirement.

 

I have fetched bulk records from one view which i want to use in different sections.. Each section expecting some aggregation on that.Earlier i was calling same view in respective sections on different pages. But due to performance hit i need to share same dataset to all sections. Now i want to set one filed value with list of respective field value, i mean to say i want some grouping on field A n want to fetch rest of fields n then want to set these values in one custom cdt. For the custom cdt i have list down my all fields n uploaded. But i am stuck now how to use that cdt, how to set dataset values in that cdt ??

 

 

If someone can help on this would be really great help....!!!

 

Thanks in advance.

 

Regards

Saurav

  Discussion posts and replies are publicly visible

Parents Reply
  • I got this by somehow, but stuck on other . Want to perform aggregation on existing dataset which i got on my interface without hitting new DB call.

    WIth the existing View data , i want to perform below query. Is that possible ?

    a!queryEntity(
    entity: cons!TEST_VIEW,
    query: a!query(
    aggregation: a!queryAggregation(
    aggregationColumns: {
    a!queryAggregationColumn(
    field: "testName",
    isGrouping: true
    ),
    a!queryAggregationColumn(
    field: "test1",
    alias: "test1",
    aggregationFunction: "SUM"
    ),
    a!queryAggregationColumn(
    field: "test2",
    alias: "test2",
    aggregationFunction: "SUM"
    ),
    a!queryAggregationColumn(
    field: "test3",
    alias: "test3",
    aggregationFunction: "SUM"
    ),
    a!queryAggregationColumn(
    field: "test4",
    alias: "test4",
    aggregationFunction: "SUM"
    )
    }
    ),
    logicalExpression: a!queryLogicalExpression(
    operator: "AND",
    filters: {
    a!queryFilter(
    field: "testName",
    operator: "not in",
    value: {
    "A",
    "B"
    }
    ),
    if(
    or(
    isusermemberofgroup(
    loggedInUser(),
    cons!TEST_GROUP1
    ),
    isusermemberofgroup(
    loggedInUser(),
    cons!TEST_GROUP2
    ),
    isusermemberofgroup(
    loggedInUser(),
    cons!TEST_GROUP3
    ),
    isusermemberofgroup(
    loggedInUser(),
    cons!TEST_GROUP4
    )
    ),
    {},
    a!queryFilter(
    field: "testName",
    operator: "not in",
    value: cons!C
    )
    )
    }
    ),

    pagingInfo: a!pagingInfo(
    startIndex: 1,
    batchSize: - 1,
    sort: a!sortInfo(
    field: "testName",
    ascending: true
    )
    )
    )
    )
Children
No Data