<?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 display grid field with CDT having nested CDT</title><link>https://community.appian.com/discussions/f/user-interface/18116/how-to-display-grid-field-with-cdt-having-nested-cdt</link><description>I have a process backed record interface with a OMCAppointmentInfo CDT which has AppointeeTM CDT array. Each OMC Appointment will have multiple TMs. Trying to display TMs fullname for each Appointment and no data is being displayed. Below interface code</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to display grid field with CDT having nested CDT</title><link>https://community.appian.com/thread/71274?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 16:32:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ade4127f-359c-4e40-b975-d57eb7a540d5</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Thanks for confirming - Vimal&amp;#39;s solution was optimal for you I believe since you can&amp;#39;t make use of the 19.2 style paging grid yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display grid field with CDT having nested CDT</title><link>https://community.appian.com/thread/71273?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 16:29:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c605879b-5d2a-43ce-ac4c-0c0204b3f31b</guid><dc:creator>meenakshir</dc:creator><description>&lt;p&gt;we are in 18.2. The solution from vimal worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display grid field with CDT having nested CDT</title><link>https://community.appian.com/thread/71272?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 16:28:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42c8344f-c5f3-4e44-8fe8-b4202fef2d07</guid><dc:creator>meenakshir</dc:creator><description>&lt;p&gt;it worked! Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display grid field with CDT having nested CDT</title><link>https://community.appian.com/thread/71267?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 15:23:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3755be51-b68b-4906-a047-8ed9c5711956</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What version of Appian are you currently using?&amp;nbsp; If you have 19.2+, it would be far easier to get your grid working by using the modern paging grid component, as it works a lot more easily for certain things (like your case) than the legacy version which you&amp;#39;re using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display grid field with CDT having nested CDT</title><link>https://community.appian.com/thread/71264?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 14:23:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:73023e83-1842-4931-9ba1-a7d885a6fea6</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;Got you. Your grid line item is based on the&amp;nbsp;&lt;span&gt;OMCAppointmentInfo&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The below expression should help you:&lt;/p&gt;
&lt;p&gt;a!foreach(items: &lt;span&gt;index(local!datasubset.data.OMCAppointmentInfo&lt;/span&gt;,&lt;br /&gt; expression: joinarray(index(index(fv!item, &amp;quot;AppointeeTM&amp;quot;, &amp;quot;&amp;quot;), &amp;quot;FullName&amp;quot;, &amp;quot;&amp;quot;), &amp;quot;, &amp;quot;))&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display grid field with CDT having nested CDT</title><link>https://community.appian.com/thread/71262?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 14:07:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cbea24a4-6806-4843-ae49-4c4135c1b4b6</guid><dc:creator>meenakshir</dc:creator><description>&lt;p&gt;Tried but returns error&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Interface Definition: Expression evaluation error at function a!gridField [line 110]: A grid component [label=&amp;ldquo;My Active Milestone Schedules - CO&amp;rdquo;] has an invalid value for &amp;ldquo;columns&amp;rdquo; and &amp;ldquo;value&amp;rdquo;. All &amp;ldquo;data&amp;rdquo; arrays must not contain more items than the specified &amp;ldquo;batchSize&amp;rdquo;, but &amp;ldquo;batchSize&amp;rdquo; was 20 and the largest column data array had 22 items.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display grid field with CDT having nested CDT</title><link>https://community.appian.com/thread/71261?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 13:57:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e6f9c0ef-488e-4166-8a3a-5d4f67d75f87</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;Hi Meena,&lt;/p&gt;
&lt;p&gt;Try&lt;span&gt;&amp;nbsp;index(index(local!datasubset.data.OMCAppointmentInfo,&amp;quot;AppointeeTM&amp;quot;,{}),&lt;/span&gt;&lt;span&gt;&amp;quot;FullName&amp;quot;,{}) ? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It seems like in your expression you are indexing&amp;nbsp;AppointeeTM twice which would return empty value.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>