<?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>Grid only has one row</title><link>https://community.appian.com/discussions/f/general/23625/grid-only-has-one-row</link><description>Hi guys, 
 I think I am close to the solution, but I&amp;#39;ve been stuck with this for a while and figured asking cannot hurt. 
 I am creating an interface which is supposed to show the user data from another User Input Task and have them confirm it has been</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Grid only has one row</title><link>https://community.appian.com/thread/90629?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 14:44:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9accfabf-d945-4986-abd5-7b700fb7fd8d</guid><dc:creator>Matthias Brixius</dc:creator><description>&lt;p&gt;Wonderful!&amp;nbsp;My thanks to you, this works perfectly for my case!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid only has one row</title><link>https://community.appian.com/thread/90619?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 13:45:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:683b647b-10bf-4fdf-ba65-ec39d39a8760</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Hi Matthias,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You could use something like this. Use index in case different columns of&amp;nbsp; your cdt may not have same length&lt;br /&gt;&lt;br /&gt;local!data: {&lt;br /&gt; fixingDate: { &amp;quot;28/02/2022&amp;quot;, &amp;quot;29/02/2022&amp;quot; },&lt;br /&gt; fixingFactor: { 1, 1 },&lt;br /&gt; fixingType: { 3, 3 },&lt;br /&gt; fixingLevel: { 1, 1 },&lt;br /&gt; underlying: { &amp;quot;Test&amp;quot;, &amp;quot;Test&amp;quot; }&lt;br /&gt; },&lt;br /&gt; local!gridData: a!forEach(&lt;br /&gt; items: enumerate(&lt;br /&gt; count(cast(typeof({}), local!data.fixingDate))&lt;br /&gt; ),&lt;br /&gt; expression: {&lt;br /&gt; fixingDate: local!data.fixingDate[fv!index],&lt;br /&gt; fixingFactor: local!data.fixingFactor[fv!index],&lt;br /&gt; fixingType: local!data.fixingType[fv!index],&lt;br /&gt; fixingLevel: local!data.fixingLevel[fv!index],&lt;br /&gt; underlying: local!data.underlying[fv!index]&lt;br /&gt; }&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid only has one row</title><link>https://community.appian.com/thread/90616?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 12:54:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23c9164d-8473-41cd-b847-b8874e148971</guid><dc:creator>Matthias Brixius</dc:creator><description>&lt;p&gt;Quick follow-up.. what would you advise in order to go from {&amp;quot;test&amp;quot;,&amp;quot;test&amp;quot;} to {&amp;quot;test&amp;quot;}, {&amp;quot;test&amp;quot;} ? Apparently neither count nor len work for variables with multiple in it..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid only has one row</title><link>https://community.appian.com/thread/90612?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 12:15:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b7a5144-3016-4cfc-b41d-7dc1485eba6c</guid><dc:creator>Matthias Brixius</dc:creator><description>&lt;p&gt;Oh, I understand! Problem is that the CDT is already used in many other instances, so I cannot change the CDT. I can however change the way I use the local, so thanks for the tip!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid only has one row</title><link>https://community.appian.com/thread/90604?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 11:41:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a5555dfc-834d-4fce-a9a1-5c2c538b1ba9</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Hi Matthias,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Instead of making the variables in the CDT as multiple, why dont you make them single and use your CDT as a multiple variable, so that your data can look like the below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;local!data: {&lt;br /&gt; {&lt;br /&gt; fixingDate: &amp;quot;28/02/2022&amp;quot;,&lt;br /&gt; fixingFactor: 1,&lt;br /&gt; fixingType: 3,&lt;br /&gt; fixingLevel: 1,&lt;br /&gt; underlying: &amp;quot;Test&amp;quot;&lt;br /&gt; },&lt;br /&gt; {&lt;br /&gt; fixingDate: &amp;quot;28/02/2022&amp;quot;,&lt;br /&gt; fixingFactor: 1,&lt;br /&gt; fixingType: 3,&lt;br /&gt; fixingLevel: 1,&lt;br /&gt; underlying: &amp;quot;Test&amp;quot;&lt;br /&gt; }&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that the grid will be making rows based on the count of your&amp;nbsp;&lt;span&gt;product_cdt and not what it&amp;#39;s internal structure is.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid only has one row</title><link>https://community.appian.com/thread/90602?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 11:34:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7663c160-a8c1-48c8-a422-6bb141004b2a</guid><dc:creator>Matthias Brixius</dc:creator><description>&lt;p&gt;I tested like this and used the local as the data source for the grid:&lt;/p&gt;
&lt;p&gt;local!data:&lt;br /&gt; {&lt;br /&gt; fixingDate: {&amp;quot;28/02/2022&amp;quot;, &amp;quot;28/02/2022&amp;quot;},&lt;br /&gt; fixingFactor: {1, 1},&lt;br /&gt; fixingType: {3, 3},&lt;br /&gt; fixingLevel: {1, 1},&lt;br /&gt; underlying: {&amp;quot;Test&amp;quot;, &amp;quot;Test&amp;quot;}&lt;br /&gt; },&lt;/p&gt;
&lt;p&gt;The concerned variables in the CDT are set to multiple&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid only has one row</title><link>https://community.appian.com/thread/90598?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 11:14:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d37f2d1-fa06-4092-9818-5795534fc544</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Can you check if your rule input is declared as multiple ?&lt;/p&gt;
&lt;p&gt;and, can you also provide your testing values for this rule input ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>