<?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>Getting only first row in readonly grid</title><link>https://community.appian.com/discussions/f/user-interface/33904/getting-only-first-row-in-readonly-grid</link><description>Can someone tell me where I am doing wrong. Just trying to show hardcoded array in grid.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Getting only first row in readonly grid</title><link>https://community.appian.com/thread/128590?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 18:11:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fdd54436-f79d-4628-ac6d-5cb92deba294</guid><dc:creator>Harshmodi</dc:creator><description>&lt;p&gt;&amp;nbsp;If you add data without re-initializing the local variables by hitting the &amp;quot;TEST&amp;quot; button, it could lead to unexpected behavior due to the variable state not being properly reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting only first row in readonly grid</title><link>https://community.appian.com/thread/128588?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 18:00:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:323cadad-db16-4ff0-843d-8da4997e2017</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I agree. Could it be that in the initial post, the developer first created the local variable with a single row&amp;nbsp;and added more without hitting the &amp;quot;TEST&amp;quot; button to re-initialize the local variables?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting only first row in readonly grid</title><link>https://community.appian.com/thread/128587?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 17:59:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba27d970-c4b9-4f0e-ad3d-1543c23b5ed1</guid><dc:creator>amina2551</dc:creator><description>&lt;p&gt;correct after hitting button it worked..thanks much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting only first row in readonly grid</title><link>https://community.appian.com/thread/128586?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 17:46:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9fa87bd5-5fe2-4c5d-acbd-70ae299c128a</guid><dc:creator>Harshmodi</dc:creator><description>&lt;div class="w-full text-token-text-primary" data-testid="conversation-turn-3"&gt;
&lt;div class="px-4 py-2 justify-center text-base md:gap-6 m-auto"&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div class="flex-col gap-1 md:gap-3"&gt;
&lt;div class="flex flex-grow flex-col max-w-full"&gt;
&lt;div data-message-author-role="assistant" data-message-id="fe097487-d048-4e8d-a274-a7e00abfc5a5"&gt;
&lt;div class="markdown prose w-full break-words dark:prose-invert dark"&gt;
&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;This should function correctly as I have successfully tested the same approach.&lt;/p&gt;
&lt;p&gt;Please press the test button once more after finishing the entire code; there may be a refresh issue.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1706723135212v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="mt-1 flex justify-start gap-3 empty:hidden"&gt;
&lt;div class="text-gray-400 flex self-end lg:self-center justify-center lg:justify-start mt-0 -ml-1 visible"&gt;
&lt;div class="flex"&gt;&lt;span class="" data-state="closed"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting only first row in readonly grid</title><link>https://community.appian.com/thread/128583?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 17:27:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:58840c58-4e39-41e7-b1d9-2630339efea3</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Great. Maps are just more specific with the data types and structure. &lt;br /&gt;Now that is has worked, can you please verify the answer to close the thread?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting only first row in readonly grid</title><link>https://community.appian.com/thread/128582?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 17:25:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9907a2e-e766-4aaf-8d91-ad0687eb247d</guid><dc:creator>amina2551</dc:creator><description>&lt;p&gt;&lt;span&gt;a!flatten()&amp;nbsp;&lt;/span&gt;didn&amp;#39;t help, but &lt;span&gt;a!map&lt;/span&gt; solved my problem.. thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting only first row in readonly grid</title><link>https://community.appian.com/thread/128581?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 17:14:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8813b63-c047-481e-840a-f1869e1a88ad</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Try using a!map instead of a dictionary. And if you want to specifically use a&amp;nbsp;&lt;span&gt;dictionary only, then a!flatten() should solve the problem.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>