<?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>Showing the result of a datasubset inside a paging grid</title><link>https://community.appian.com/discussions/f/general/13927/showing-the-result-of-a-datasubset-inside-a-paging-grid</link><description>I have the datasubset A shows all managers of my firm . i am showing inside a paging grid . 
 
 Data subset A has a key value Manager ID 
 
 for each manager i am querying employees ( Data Subset B ) who reports to that manager . which i am getting by</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Showing the result of a datasubset inside a paging grid</title><link>https://community.appian.com/thread/63206?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 18:26:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33368684-0ab8-4c85-b9d6-4ef2bd7a5121</guid><dc:creator>Shreehari Gopalakrishnan Ramanan</dc:creator><description>That worked . Thanks for your help&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Showing the result of a datasubset inside a paging grid</title><link>https://community.appian.com/thread/63205?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 18:11:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:54b66db1-faf9-4ec0-af6d-edefc9642bbe</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Sorry - I made a small mistake. The inner a!forEach() needs to be wrapped inside a concat().&amp;nbsp; My original example is now updated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Showing the result of a datasubset inside a paging grid</title><link>https://community.appian.com/thread/63204?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 18:10:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0608c7bf-5e3f-4e53-933d-4dbba8dab3fa</guid><dc:creator>Shreehari Gopalakrishnan Ramanan</dc:creator><description>for one direct report it works fine , but I am getting this error when more than one direct reports&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Showing the result of a datasubset inside a paging grid</title><link>https://community.appian.com/thread/63203?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 18:10:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b015aacd-1d37-46f3-8141-fc8d436ebc03</guid><dc:creator>Shreehari Gopalakrishnan Ramanan</dc:creator><description>Expression evaluation error in rule &amp;#39;Manager_view&amp;#39; at function a!gridField [line 53]: A grid component [label=“”] has an invalid value for “totalCount”. “totalCount” must not be null or less than the number of items in any of the “data” arrays, but “totalCount” was 3 and the largest column data array had 5 items. (APNX-1-4198-000)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Showing the result of a datasubset inside a paging grid</title><link>https://community.appian.com/thread/63202?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 17:49:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a62d9439-f1f3-4a6f-961c-273d011eff94</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;for your Direct Reports column, something like this template should work well:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!gridTextColumn(
  data: a!forEach(
    local!managerDataSubset,
    with(
      local!reportsForThisManager: rule!queryReportsForMgr(mgrId: fv!item.mgrId),
      concat(
        a!forEach(
          local!reportsForThisManager,
          fv!item.FirstName &amp;amp; &amp;quot; &amp;quot; &amp;amp; fv!item.LastName &amp;amp; if(fv!isLast, null(), char(10))
        )
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>