<?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>Afternoon all,  I have an odd issue with a dynamic gridLayout. Th</title><link>https://community.appian.com/discussions/f/general/5502/afternoon-all-i-have-an-odd-issue-with-a-dynamic-gridlayout-th</link><description>Afternoon all, I have an odd issue with a dynamic gridLayout. The grid has a dynamic number of both rows and columns, with total and subtotal rows and most of the time this is working - however.......... when there is only 1 row of data I am getting an</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Afternoon all,&lt;br /&gt;&lt;br /&gt;I have an odd issue with a dynamic gridLayout.&lt;br /&gt;Th</title><link>https://community.appian.com/thread/20876?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 06:26:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13c617e5-48c4-49f3-9ac2-a0bec7a4b7dd</guid><dc:creator>abhi.jana</dc:creator><description>For the record, the workaround would be to wrap the applycomponents in a cast() to type!RowLayout?List&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Afternoon all,&lt;br /&gt;&lt;br /&gt;I have an odd issue with a dynamic gridLayout.&lt;br /&gt;Th</title><link>https://community.appian.com/thread/20838?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 16:46:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21c8063f-3fac-4680-9af7-e9bfd7522eee</guid><dc:creator>garethm</dc:creator><description>Abhi - Thanks, but I will also raise a support ticket referencing this thread as it is affecting our live environment and needs speedy resolution.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Afternoon all,&lt;br /&gt;&lt;br /&gt;I have an odd issue with a dynamic gridLayout.&lt;br /&gt;Th</title><link>https://community.appian.com/thread/20823?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 07:50:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:50a898bc-1753-41b5-a180-b9a40fdf3f6b</guid><dc:creator>abhi.jana</dc:creator><description>Thanks for the example app. I have created a ticket with Engineering for this issue (AN-62333)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Afternoon all,&lt;br /&gt;&lt;br /&gt;I have an odd issue with a dynamic gridLayout.&lt;br /&gt;Th</title><link>https://community.appian.com/thread/20808?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 14:44:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:553057de-3abf-47a6-b405-f971beabbc3b</guid><dc:creator>garethm</dc:creator><description>Hiya Tim,&lt;br /&gt;&lt;br /&gt;If count(dataset) = 1 I am calling the rule without the applycomponents and that was taking care of the problem, however, in my real world, the dataset is split into sections defined by a non-displayed field, with the sections separated by a subtotal row.&lt;br /&gt;&lt;br /&gt;As long as at least 1 of these sections contains 2 or more rows the grid renders.&lt;br /&gt;&lt;br /&gt;When there is only 1 data row in each of the sections, the issue is occurring.&lt;br /&gt;&lt;br /&gt;A little digging later and (using the example attached above)&lt;br /&gt;the dataType returned from rule!exampleGridRows is:&lt;br /&gt;&lt;br /&gt;Dataset1  = Type 1233 (RowLayout?list) and count() = 4&lt;br /&gt;Dataset2  = Type 197 (List of Variant) and count() = 1&lt;br /&gt;&lt;br /&gt;Something seems wrong here in the way a!applyComponents is being applied.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/gridLayout-responses.PNG"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/gridLayout-responses.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Afternoon all,&lt;br /&gt;&lt;br /&gt;I have an odd issue with a dynamic gridLayout.&lt;br /&gt;Th</title><link>https://community.appian.com/thread/20807?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 14:21:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a823c7d0-b142-49d9-a7be-5c2d4fd208e5</guid><dc:creator>Tim</dc:creator><description>Hi Gareth&lt;br /&gt;I&amp;#39;ve seen this before.... problem is I can&amp;#39;t remember how I got round it last time! I assume you can test the length of the array, if there is only one row just run the gridRows expression with a fixed index of 1 and without the applyComponents - this works in your test app, not sure about your actual design though.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Afternoon all,&lt;br /&gt;&lt;br /&gt;I have an odd issue with a dynamic gridLayout.&lt;br /&gt;Th</title><link>https://community.appian.com/thread/20806?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 13:25:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4a665eaa-2003-4b84-ad55-3f7638cb7fc1</guid><dc:creator>garethm</dc:creator><description>Attached is a simple application with 1 interface and 1 expression that duplicates what is happening in my actual environment.&lt;br /&gt;&lt;br /&gt;There are 2 datasets, 1 with a 2 arrays of data which works correctly, and 1 which only has 1 data array which results in the error&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/exampleGridLayout.zip"&gt;exampleGridLayout.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Afternoon all,&lt;br /&gt;&lt;br /&gt;I have an odd issue with a dynamic gridLayout.&lt;br /&gt;Th</title><link>https://community.appian.com/thread/20804?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 12:13:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d82c88ca-0982-411c-a808-828d157f11e1</guid><dc:creator>garethm</dc:creator><description>Abhi,&lt;br /&gt;&lt;br /&gt;The design is already using a!applyComponents, both for defining the columns and then populating the rows, and when there is more than 1 row of data this works correctly.&lt;br /&gt;&lt;br /&gt;The issue is when the sub-rule (used by in the applycomponents) that returns a single array of multiple rows, the grid errors.&lt;br /&gt;&lt;br /&gt;If there are multiple row, of raw data, the grid populates correctly - including the &amp;#39;triple&amp;#39; row that on its own is the problem.&lt;br /&gt;&lt;br /&gt;I will see if I can create an example and add it to this thread as the code being used is complex&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Afternoon all,&lt;br /&gt;&lt;br /&gt;I have an odd issue with a dynamic gridLayout.&lt;br /&gt;Th</title><link>https://community.appian.com/thread/20799?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 10:20:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d381bb0b-ccd4-4aca-8cde-b8873cd4780e</guid><dc:creator>abhi.jana</dc:creator><description>Are you able to simplify your SAIL form and attach it to this post?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Afternoon all,&lt;br /&gt;&lt;br /&gt;I have an odd issue with a dynamic gridLayout.&lt;br /&gt;Th</title><link>https://community.appian.com/thread/20797?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 09:35:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3254dcc2-782c-495c-8bb3-d5fa109d04df</guid><dc:creator>abhi.jana</dc:creator><description>I&amp;#39;m unfamiliar with your design, but you may find this SAIL recipe for Editable grid using applycomponents to construct the rows useful to compare with your own implementation. The example in the recipe works fine with a single row of data.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/7.10/SAIL_Recipes.html#Add_Edit_and_Remove_Data_In_an_Inline_Editable_Grid"&gt;forum.appian.com/.../SAIL_Recipes.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>