<?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>To capture Primary Id in a Read Only Grid</title><link>https://community.appian.com/discussions/f/new-to-appian/21354/to-capture-primary-id-in-a-read-only-grid</link><description>Hi, 
 I am displaying a table in a Read only grid based on Drop down selection from another table. 
 I am able configure update Emp action in Emp type in drop down as I am catching Primary key but I want to configure the same in the Grid for updating</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: To capture Primary Id in a Read Only Grid</title><link>https://community.appian.com/thread/83365?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 09:45:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f1f54d4b-8475-44e6-8fd2-015e40034d71</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The comment says&lt;/p&gt;
&lt;p&gt;&lt;span class="cm"&gt;/* Using the index function to return the last-selected item ensures that only one item will be selected at a time, regardless of how fast the user clicks. */&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;save!value are&amp;nbsp;all items the user select. When clicking fast this could be more than one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To capture Primary Id in a Read Only Grid</title><link>https://community.appian.com/thread/83364?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 08:43:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ea6b363-756f-4c19-848b-ae026b817922</guid><dc:creator>faisalf0003</dc:creator><description>&lt;p&gt;I am little confused with these two index functions:&lt;/p&gt;
&lt;pre&gt;&lt;span class="nf"&gt;index&lt;/span&gt;&lt;span class="ow"&gt;(&lt;/span&gt;&lt;span class="k"&gt;fv!selectedRows&lt;/span&gt;&lt;span class="ow"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;length&lt;/span&gt;&lt;span class="ow"&gt;(&lt;/span&gt;&lt;span class="k"&gt;fv!selectedRows&lt;/span&gt;&lt;span class="ow"&gt;),null) and&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class="nf"&gt;index&lt;/span&gt;&lt;span class="ow"&gt;(&lt;/span&gt;&lt;span class="k"&gt;save!value&lt;/span&gt;&lt;span class="ow"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;length&lt;/span&gt;&lt;span class="ow"&gt;(&lt;/span&gt;&lt;span class="k"&gt;save!value&lt;/span&gt;&lt;span class="ow"&gt;),&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="ow"&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;I understand the index function functionality but here what are they doing I am not able to understand.&lt;br /&gt;How they are helping the user to restrict the selection to only one row at a time?&lt;br /&gt;&lt;br /&gt;Need help to understand.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To capture Primary Id in a Read Only Grid</title><link>https://community.appian.com/thread/83363?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 08:36:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45dafcaa-1919-4bed-bf11-486c4e156a4c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;It is not clear to me what your question is.&lt;/p&gt;
&lt;p&gt;Does that code work for you?&lt;/p&gt;
&lt;p&gt;Do you struggle to understand what is going on?&lt;/p&gt;
&lt;p&gt;The comments in the code are a good description. Do you have any concrete questions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To capture Primary Id in a Read Only Grid</title><link>https://community.appian.com/thread/83361?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 07:25:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f782ea70-9829-4cde-ae08-f6ccb8d08d7b</guid><dc:creator>faisalf0003</dc:creator><description>&lt;p&gt;Thank you for the suggestion for pasting the codes. I was not aware. It is nice.&lt;/p&gt;
&lt;p&gt;The document did help me but I wanted to catch a primary key and the similar page helped after this to catch the primary Id or selected rows id.&lt;/p&gt;
&lt;p&gt;Now I have another understanding issues related to the code used in&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.2/recipe-use-links-in-a-grid-to-show-more-details-and-edit-data.html"&gt;Use Links in a Grid to Show More Details and Edit Data - Appian 21.2&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;how do the code work from line 57 to 64. how are the variables getting saved sequentially . To me it is saving null but how the selected row is always showing the latest row?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Faisal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To capture Primary Id in a Read Only Grid</title><link>https://community.appian.com/thread/83344?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 20:04:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:714bc518-23a6-4280-9814-3b315948942f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Please use this to paste code.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1625256242604v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Did you check this pattern?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.2/grid-with-selection-pattern.html"&gt;docs.appian.com/.../grid-with-selection-pattern.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>