<?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>Appending of datasubsets to dispaly in grid</title><link>https://community.appian.com/discussions/f/data/13493/appending-of-datasubsets-to-dispaly-in-grid</link><description>Hi friends, Is it possible to append two datasubsets and show it in the single grid which is total count differen? Business Case: Initially the application was task based , now client wants it to be record based. I have added the related actions. Now</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Appending of datasubsets to dispaly in grid</title><link>https://community.appian.com/thread/61218?ContentTypeID=1</link><pubDate>Fri, 05 Oct 2018 07:16:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0232f80a-9e70-41a7-89bb-0cf0f6de2472</guid><dc:creator>vishnuv</dc:creator><description>Hi,&lt;br /&gt;
You might see if below options help:&lt;br /&gt;
1. Using joinCdt() &lt;br /&gt;
2. Expression something like below &lt;br /&gt;
                             local!aggregatedData: append( local!dataSet1.anyField, local!dataSet2.anyField )&lt;br /&gt;
                            with(&lt;br /&gt;
                            local!dataSubset: todatasubset( local!aggregatedData, local!pagingInfo ) )&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appending of datasubsets to dispaly in grid</title><link>https://community.appian.com/thread/61217?ContentTypeID=1</link><pubDate>Fri, 05 Oct 2018 07:15:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8fae8bda-a2eb-4966-b947-2ed0ac39f9b4</guid><dc:creator>Vinay Kumar Rai</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;try using a!datasubset,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;=load(
  
   local!dataSubset1 : &amp;lt;my dataSubset&amp;gt;,
   local!dataSubset2 : &amp;lt;my dataSubset&amp;gt;,
   
   local!mainDatasubset :
      a!dataSubset(
        startIndex  : 1, 
        batchSize   : 3, 
        sort        : a!sortInfo(field:&amp;quot;Id&amp;quot;), 
        totalCount  : local!dataSubset1.totalCount + local!dataSubset2.totalCount, 
        data        : append(local!dataSubset1.data,local!dataSubset2.data), 
        identifiers : append(local!dataSubset1.identifiers,local!dataSubset2.identifiers)
      )
  
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Vinay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appending of datasubsets to dispaly in grid</title><link>https://community.appian.com/thread/61216?ContentTypeID=1</link><pubDate>Fri, 05 Oct 2018 06:46:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ee676c6-beef-4e83-a7ab-fdf50b9ed1d1</guid><dc:creator>geervanim</dc:creator><description>&lt;p&gt;Hi friends,&lt;/p&gt;
&lt;p&gt;Is it possible to append two datasubsets and show it in the single grid which is total count differen?&lt;/p&gt;
&lt;p&gt;Business Case: Initially the application was task based , now client wants it to be record based. I have added the related actions. Now I want to show all the active tasks from old report ( which is from task based ), new tasks from the related actions .&lt;/p&gt;
&lt;p&gt;I am unable to do this because of the total count issue. In my old report I have 3 tasks and new report I have 6 tasks.&lt;/p&gt;
&lt;p&gt;And if suppose I give the batchsize=3 .&lt;/p&gt;
&lt;p&gt;I am getting the below error&lt;/p&gt;
&lt;p&gt;A grid component [label=&amp;ldquo;&amp;rdquo;] has an invalid value for &amp;ldquo;value&amp;rdquo; and &amp;ldquo;totalCount&amp;rdquo;. &amp;ldquo;startIndex&amp;rdquo; must not be greater than &amp;ldquo;totalCount&amp;rdquo;, but &amp;ldquo;startIndex&amp;rdquo; was 4 and &amp;ldquo;totalCount&amp;rdquo; was 3.&lt;/p&gt;
&lt;p&gt;Here is code&lt;/p&gt;
&lt;p&gt;load(local!pagingInfo:&lt;/p&gt;
&lt;p&gt;a!pagingInfo(&lt;/p&gt;
&lt;p&gt;startIndex: 1,&lt;/p&gt;
&lt;p&gt;batchSize:3 ),&lt;/p&gt;
&lt;p&gt;with( /* Fetching the datasubsets here */&lt;/p&gt;
&lt;p&gt;local!tempData: append(index(local!datasubsetOldTaskList,&amp;quot;data&amp;quot;),&lt;/p&gt;
&lt;p&gt;index(local!datasubsetNewTaskList,&amp;quot;data&amp;quot;) ),&lt;/p&gt;
&lt;p&gt;local!tempDataSubset: todatasubset( local!tempData, local!pagingInfo )&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>