<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to use Custom CDT with dataset</title><link>https://community.appian.com/discussions/f/user-interface/12412/how-to-use-custom-cdt-with-dataset</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to use Custom CDT with dataset</title><link>https://community.appian.com/thread/55202?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 08:43:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f22e0edc-5061-4f43-8768-d76c75f6443f</guid><dc:creator>sauravk</dc:creator><description>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.&lt;br /&gt;
&lt;br /&gt;
WIth the existing View data , i want to perform below query. Is that possible ?&lt;br /&gt;
&lt;br /&gt;
a!queryEntity(&lt;br /&gt;
  entity: cons!TEST_VIEW,&lt;br /&gt;
  query: a!query(&lt;br /&gt;
    aggregation: a!queryAggregation(&lt;br /&gt;
      aggregationColumns: {&lt;br /&gt;
        a!queryAggregationColumn(&lt;br /&gt;
          field: &amp;quot;testName&amp;quot;,&lt;br /&gt;
          isGrouping: true&lt;br /&gt;
        ),&lt;br /&gt;
        a!queryAggregationColumn(&lt;br /&gt;
          field: &amp;quot;test1&amp;quot;,&lt;br /&gt;
          alias: &amp;quot;test1&amp;quot;,&lt;br /&gt;
          aggregationFunction: &amp;quot;SUM&amp;quot;&lt;br /&gt;
        ),&lt;br /&gt;
        a!queryAggregationColumn(&lt;br /&gt;
          field: &amp;quot;test2&amp;quot;,&lt;br /&gt;
          alias: &amp;quot;test2&amp;quot;,&lt;br /&gt;
          aggregationFunction: &amp;quot;SUM&amp;quot;&lt;br /&gt;
        ),&lt;br /&gt;
        a!queryAggregationColumn(&lt;br /&gt;
          field: &amp;quot;test3&amp;quot;,&lt;br /&gt;
          alias: &amp;quot;test3&amp;quot;,&lt;br /&gt;
          aggregationFunction: &amp;quot;SUM&amp;quot;&lt;br /&gt;
        ),&lt;br /&gt;
        a!queryAggregationColumn(&lt;br /&gt;
          field: &amp;quot;test4&amp;quot;,&lt;br /&gt;
          alias: &amp;quot;test4&amp;quot;,&lt;br /&gt;
          aggregationFunction: &amp;quot;SUM&amp;quot;&lt;br /&gt;
        )&lt;br /&gt;
      }&lt;br /&gt;
    ),&lt;br /&gt;
   logicalExpression: a!queryLogicalExpression(&lt;br /&gt;
      operator: &amp;quot;AND&amp;quot;,&lt;br /&gt;
      filters: {&lt;br /&gt;
        a!queryFilter(&lt;br /&gt;
          field: &amp;quot;testName&amp;quot;,&lt;br /&gt;
          operator: &amp;quot;not in&amp;quot;,&lt;br /&gt;
          value: {&lt;br /&gt;
            &amp;quot;A&amp;quot;,&lt;br /&gt;
            &amp;quot;B&amp;quot;&lt;br /&gt;
          }&lt;br /&gt;
        ),&lt;br /&gt;
        if(&lt;br /&gt;
          or(&lt;br /&gt;
            isusermemberofgroup(&lt;br /&gt;
              loggedInUser(),&lt;br /&gt;
              cons!TEST_GROUP1&lt;br /&gt;
            ),&lt;br /&gt;
            isusermemberofgroup(&lt;br /&gt;
              loggedInUser(),&lt;br /&gt;
              cons!TEST_GROUP2&lt;br /&gt;
            ),&lt;br /&gt;
            isusermemberofgroup(&lt;br /&gt;
              loggedInUser(),&lt;br /&gt;
              cons!TEST_GROUP3&lt;br /&gt;
            ),&lt;br /&gt;
            isusermemberofgroup(&lt;br /&gt;
              loggedInUser(),&lt;br /&gt;
              cons!TEST_GROUP4&lt;br /&gt;
            )&lt;br /&gt;
          ),&lt;br /&gt;
          {},&lt;br /&gt;
          a!queryFilter(&lt;br /&gt;
            field: &amp;quot;testName&amp;quot;,&lt;br /&gt;
            operator: &amp;quot;not in&amp;quot;,&lt;br /&gt;
            value: cons!C&lt;br /&gt;
          )&lt;br /&gt;
        )&lt;br /&gt;
      }&lt;br /&gt;
    ),&lt;br /&gt;
    &lt;br /&gt;
    pagingInfo: a!pagingInfo(&lt;br /&gt;
      startIndex: 1,&lt;br /&gt;
      batchSize: - 1,&lt;br /&gt;
      sort: a!sortInfo(&lt;br /&gt;
        field: &amp;quot;testName&amp;quot;,&lt;br /&gt;
        ascending: true&lt;br /&gt;
      )&lt;br /&gt;
    )&lt;br /&gt;
  )&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Custom CDT with dataset</title><link>https://community.appian.com/thread/55166?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 12:56:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dddfdf66-37b0-4b14-a706-7153e7e6b055</guid><dc:creator>Aditya</dc:creator><description>Can you share your code&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Custom CDT with dataset</title><link>https://community.appian.com/thread/55160?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 10:45:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:69c499a2-e706-4f8e-adbc-5e326433fce4</guid><dc:creator>sauravk</dc:creator><description>No , it&amp;#39;s loading on clicking respective report name on report tab&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Custom CDT with dataset</title><link>https://community.appian.com/thread/55124?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 15:26:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0d18c70-2d39-4649-b3e0-3fe4610721c8</guid><dc:creator>Aditya</dc:creator><description>Are you using any buttons in your section?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Custom CDT with dataset</title><link>https://community.appian.com/thread/55123?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 15:20:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5a6556e-a917-4789-8619-072a3803501d</guid><dc:creator>sauravk</dc:creator><description>I have single report with multiple sections , so i need to implement at interface level.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Custom CDT with dataset</title><link>https://community.appian.com/thread/55122?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 15:18:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d291e9b9-2785-4b09-812e-f624762bdf0e</guid><dc:creator>sauravk</dc:creator><description>Yes you are correct . Then how can i achieve without hitting DB every time ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Custom CDT with dataset</title><link>https://community.appian.com/thread/55087?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 05:12:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9042a653-dbbc-4a4f-be57-9c90178a2b37</guid><dc:creator>Aditya</dc:creator><description>&lt;p&gt;Create a script task. From the output tab of the script task, create a new output and using the expression editor, call the rule which returns your dataset. Add &amp;quot;.data&amp;quot; after the rule call. Then in the same output that you just created, select &amp;#39;is stored as&amp;#39; and then give your cdt name where you want to store the output (in your case the dataset).&lt;/p&gt;
&lt;p&gt;** Keep In mind that your dataset field names should match your cdt field name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Custom CDT with dataset</title><link>https://community.appian.com/thread/55076?ContentTypeID=1</link><pubDate>Sun, 13 May 2018 10:26:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2bf1ecc0-d44e-4a4d-a154-abb94f23b092</guid><dc:creator>krishnaprasadd</dc:creator><description>Hi Saurav,&lt;br /&gt;
&lt;br /&gt;
Is it like that for each section you need perform aggregation on different field and fetch data accordingly? So if you don&amp;#39;t want to make multiple data base calls you can fetch the required data using query selection from database and perform operations for aggregation using appian functions.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>