<?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>Issue with selectable editable grid</title><link>https://community.appian.com/discussions/f/user-interface/38669/issue-with-selectable-editable-grid</link><description>What is the possible issue with the below code. I&amp;#39;m trying to make a selectable editable grid, I have given identifiers as well and converted raw data into datasubset but still the selection I do is selecting all rows whenever I click on any one. 
 Note</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Issue with selectable editable grid</title><link>https://community.appian.com/thread/146166?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 05:24:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27333ba2-0ee9-4bf6-8707-f724adfff73b</guid><dc:creator>thevarunbawa</dc:creator><description>&lt;p&gt;Working now, Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with selectable editable grid</title><link>https://community.appian.com/thread/146165?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 05:21:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2fe0da4b-5072-482a-b6d7-02df133e6600</guid><dc:creator>Vyshnavi Naripeddi</dc:creator><description>&lt;p&gt;No, not a new column. In gridRowLayout you will be having a parameter called ID just like CONTENTS, try passing the id to that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with selectable editable grid</title><link>https://community.appian.com/thread/146164?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 05:17:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ca2aaaf-70c6-4cd8-8316-60d9291465f6</guid><dc:creator>thevarunbawa</dc:creator><description>&lt;p&gt;still the same issue, I have added id as new column&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;{
  /* This is a lighter style of tabs that works well when you are on a page with record views or some other */
  /* set of buttons right next to your custom tabs.                                                         */
  a!localVariables(
    local!selectedTab: 1,
    local!customerId,
    local!selectedDetails,
    {
      a!richTextDisplayField(
        labelPosition: &amp;quot;COLLAPSED&amp;quot;,
        value: {
          a!richTextItem(
            text: &amp;quot;Life&amp;quot;,
            link: if(
              local!selectedTab = 1,
              null,
              a!dynamicLink(saveInto: a!save(local!selectedTab, 1))
            ),
            linkStyle: &amp;quot;STANDALONE&amp;quot;,
            style: if(local!selectedTab = 1, &amp;quot;STRONG&amp;quot;, &amp;quot;&amp;quot;)
          ),
          a!richTextItem(text: &amp;quot;    |    &amp;quot;),
          a!richTextItem(
            text: &amp;quot;ADD&amp;quot;,
            link: if(
              local!selectedTab = 2,
              null,
              a!dynamicLink(saveInto: a!save(local!selectedTab, 2))
            ),
            linkStyle: &amp;quot;STANDALONE&amp;quot;,
            style: if(local!selectedTab = 2, &amp;quot;STRONG&amp;quot;, &amp;quot;&amp;quot;)
          ),
          a!richTextItem(text: &amp;quot;    |    &amp;quot;),
          a!richTextItem(
            text: &amp;quot;Dependent&amp;quot;,
            link: if(
              local!selectedTab = 3,
              null,
              a!dynamicLink(saveInto: a!save(local!selectedTab, 3))
            ),
            linkStyle: &amp;quot;STANDALONE&amp;quot;,
            style: if(local!selectedTab = 3, &amp;quot;STRONG&amp;quot;, &amp;quot;&amp;quot;)
          )
        }
      ),
      {
        choose(
          local!selectedTab,
          {
            {
              a!localVariables(
                local!classes: {
                  a!map(
                    class: &amp;quot;1R&amp;quot;,
                    plan: {
                      a!map(
                        plan_id: 1,
                        classcode: &amp;quot;1R&amp;quot;,
                        lastModifiedDate: &amp;quot;10/29/2020 7:10 AM&amp;quot;,
                        bank: &amp;quot;Y&amp;quot;,
                        calcs: &amp;quot;Y&amp;quot;,
                        opt: &amp;quot;Y&amp;quot;,
                        dep: &amp;quot;N&amp;quot;,
                        stat_state: &amp;quot;NY&amp;quot;
                      ),
                      a!map(
                        plan_id: 2,
                        classcode: &amp;quot;1R&amp;quot;,
                        lastModifiedDate: &amp;quot;10/19/2010 7:10 PM&amp;quot;,
                        bank: &amp;quot;Y&amp;quot;,
                        calcs: &amp;quot;Y&amp;quot;,
                        opt: &amp;quot;N&amp;quot;,
                        dep: &amp;quot;Y&amp;quot;,
                        stat_state: &amp;quot;NY&amp;quot;
                      ),
                      a!map(
                        plan_id: 3,
                        classcode: &amp;quot;1R&amp;quot;,
                        lastModifiedDate: &amp;quot;&amp;quot;,
                        bank: &amp;quot;Y&amp;quot;,
                        calcs: &amp;quot;Y&amp;quot;,
                        opt: &amp;quot;Y&amp;quot;,
                        dep: &amp;quot;N&amp;quot;,
                        stat_state: &amp;quot;TX&amp;quot;
                      ),
                      a!map(
                        plan_id: 4,
                        classcode: &amp;quot;1R&amp;quot;,
                        lastModifiedDate: &amp;quot;&amp;quot;,
                        bank: &amp;quot;Y&amp;quot;,
                        calcs: &amp;quot;Y&amp;quot;,
                        opt: &amp;quot;Y&amp;quot;,
                        dep: &amp;quot;Y&amp;quot;,
                        stat_state: &amp;quot;TX&amp;quot;
                      ),

                    }
                  ),
                  a!map(
                    class: &amp;quot;AA&amp;quot;,
                    plan: {
                      a!map(
                        plan_id: 5,
                        classcode: &amp;quot;AA&amp;quot;,
                        lastModifiedDate: &amp;quot;1/9/2022 6:10 AM&amp;quot;,
                        bank: &amp;quot;Y&amp;quot;,
                        calcs: &amp;quot;Y&amp;quot;,
                        opt: &amp;quot;N&amp;quot;,
                        dep: &amp;quot;Y&amp;quot;,
                        stat_state: &amp;quot;CT&amp;quot;
                      ),
                      a!map(
                        plan_id: 6,
                        classcode: &amp;quot;AA&amp;quot;,
                        lastModifiedDate: &amp;quot;&amp;quot;,
                        bank: &amp;quot;N&amp;quot;,
                        calcs: &amp;quot;N&amp;quot;,
                        opt: &amp;quot;Y&amp;quot;,
                        dep: &amp;quot;Y&amp;quot;,
                        stat_state: &amp;quot;CT&amp;quot;
                      ),
                      a!map(
                        plan_id: 7,
                        classcode: &amp;quot;AA&amp;quot;,
                        lastModifiedDate: &amp;quot;10/22/2000 7:11 PM&amp;quot;,
                        bank: &amp;quot;N&amp;quot;,
                        calcs: &amp;quot;N&amp;quot;,
                        opt: &amp;quot;N&amp;quot;,
                        dep: &amp;quot;Y&amp;quot;,
                        stat_state: &amp;quot;DC&amp;quot;
                      ),
                      a!map(
                        plan_id: 8,
                        classcode: &amp;quot;AA&amp;quot;,
                        lastModifiedDate: &amp;quot;&amp;quot;,
                        bank: &amp;quot;N&amp;quot;,
                        calcs: &amp;quot;N&amp;quot;,
                        opt: &amp;quot;N&amp;quot;,
                        dep: &amp;quot;Y&amp;quot;,
                        stat_state: &amp;quot;DC&amp;quot;
                      ),

                    }
                  )
                },
                local!selectedClassCode,
                local!selectedRow:tointeger({}),
                local!selection,
                local!plans: index(
                  index(
                    local!classes,
                    wherecontains(
                      tostring(local!selectedClassCode),
                      index(local!classes, &amp;quot;class&amp;quot;, {})
                    ),
                    {}
                  ),
                  1,
                  null
                ),
                local!selectedRowData,
                local!assignedClass,
                local!selectedPlan: a!dataSubset(
                  data: index(local!plans, &amp;quot;plan&amp;quot;, null),
                  startIndex: 1,
                  batchSize: - 1,
                  identifiers: index(
                    index(local!plans, &amp;quot;plan&amp;quot;, null),
                    &amp;quot;plan_id&amp;quot;,
                    null
                  )
                ),
                {
                  a!columnsLayout(
                    columns: {
                      a!columnLayout(
                        contents: {
                          a!sectionLayout(
                            label: &amp;quot;&amp;quot;,
                            contents: {
                              a!dropdownField(
                                label: &amp;quot;Class Code&amp;quot;,
                                choiceLabels: { &amp;quot;AA&amp;quot;, &amp;quot;1R&amp;quot; },
                                choiceValues: { &amp;quot;AA&amp;quot;, &amp;quot;1R&amp;quot; },
                                placeholder: &amp;quot;Select&amp;quot;,
                                saveInto: local!selectedClassCode,
                                required: true(),
                                value: local!selectedClassCode
                              ),
                              a!gridLayout(
                                label: &amp;quot;Plans&amp;quot;,
                                labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                                headerCells: {
                                  a!gridLayoutHeaderCell(label: &amp;quot;&amp;quot;),
                                  a!gridLayoutHeaderCell(label: &amp;quot;Plan Id&amp;quot;),
                                  a!gridLayoutHeaderCell(label: &amp;quot;Class Code&amp;quot;),
                                  a!gridLayoutHeaderCell(label: &amp;quot;Last Modified Date&amp;quot;),
                                  a!gridLayoutHeaderCell(label: &amp;quot;Bank&amp;quot;),
                                  a!gridLayoutHeaderCell(label: &amp;quot;Calcs&amp;quot;),
                                  a!gridLayoutHeaderCell(label: &amp;quot;Opt&amp;quot;),
                                  a!gridLayoutHeaderCell(label: &amp;quot;Dep&amp;quot;),
                                  a!gridLayoutHeaderCell(label: &amp;quot;Stat State&amp;quot;),

                                },
                                rows: {
                                  a!forEach(
                                    items: local!selectedPlan,
                                    expression: 
                                    a!gridRowLayout(
                                      contents: {
                                        a!checkboxField(
                                          choiceLabels: &amp;quot;&amp;quot;,
                                          choiceValues: fv!index,
                                          /*value: if(contains(local!assignedClass,tostring(fv!index)), fv!index, null),*/
                                          labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                                          saveInto: {
                                            a!save(
                                              local!assignedClass,
                                              append(local!assignedClass, save!value)
                                            )
                                          }
                                        ),
                                        a!richTextDisplayField(
                                          value: a!richTextItem(text: fv!identifier, size: &amp;quot;SMALL&amp;quot;),
                                          marginAbove: &amp;quot;NONE&amp;quot;,
                                          marginBelow: &amp;quot;NONE&amp;quot;
                                        ),
                                        a!richTextDisplayField(
                                          value: a!richTextItem(text: fv!item.classCode, size: &amp;quot;SMALL&amp;quot;),
                                          marginAbove: &amp;quot;NONE&amp;quot;,
                                          marginBelow: &amp;quot;NONE&amp;quot;
                                        ),
                                        a!richTextDisplayField(
                                          value: a!richTextItem(
                                            text: fv!item.lastModifiedDate,
                                            size: &amp;quot;SMALL&amp;quot;
                                          ),
                                          marginAbove: &amp;quot;NONE&amp;quot;,
                                          marginBelow: &amp;quot;NONE&amp;quot;
                                        ),
                                        a!richTextDisplayField(
                                          value: a!richTextItem(text: fv!item.bank, size: &amp;quot;SMALL&amp;quot;),
                                          marginAbove: &amp;quot;NONE&amp;quot;,
                                          marginBelow: &amp;quot;NONE&amp;quot;
                                        ),
                                        a!richTextDisplayField(
                                          value: a!richTextItem(text: fv!item.calcs, size: &amp;quot;SMALL&amp;quot;),
                                          marginAbove: &amp;quot;NONE&amp;quot;,
                                          marginBelow: &amp;quot;NONE&amp;quot;
                                        ),
                                        a!richTextDisplayField(
                                          value: a!richTextItem(text: fv!item.opt, size: &amp;quot;SMALL&amp;quot;),
                                          marginAbove: &amp;quot;NONE&amp;quot;,
                                          marginBelow: &amp;quot;NONE&amp;quot;
                                        ),
                                        a!richTextDisplayField(
                                          value: a!richTextItem(text: fv!item.dep, size: &amp;quot;SMALL&amp;quot;),
                                          marginAbove: &amp;quot;NONE&amp;quot;,
                                          marginBelow: &amp;quot;NONE&amp;quot;
                                        ),
                                        a!richTextDisplayField(
                                          value: a!richTextItem(text: fv!item.stat_state, size: &amp;quot;SMALL&amp;quot;),
                                          marginAbove: &amp;quot;NONE&amp;quot;,
                                          marginBelow: &amp;quot;NONE&amp;quot;
                                        )
                                      }
                                    )

                                  )
                                },
                                totalCount: 10,
                                selectable: true,
                                selectionStyle: &amp;quot;ROW_HIGHLIGHT&amp;quot;,
                                selectionValue: local!selectedRow,
                                selectionSaveInto: {
                                  /*local!selectedRow,*/
                                  /*a!save(*/
                                  local!selectedRow,
                                  /*a!flatten(save!value)*/
                                  /*),*/
                                  /*a!save(*/
                                  /*local!assignedClass,*/
                                  /*index(*/
                                  /*local!selectedPlan,*/
                                  /*local!selectedRow,*/
                                  /*null*/
                                  /*)*/
                                  /*)*/
                                },
                                emptyGridMessage: &amp;quot;Select class code to review data&amp;quot;,
                                borderStyle: &amp;quot;LIGHT&amp;quot;,
                                spacing: &amp;quot;DENSE&amp;quot;
                              ),
                              /*a!gridField(                               */
                              /*data: todatasubset(*/
                              /*local!selectedPlan,*/
                              /*fv!pagingInfo*/
                              /*),*/
                              /*columns: {                                  */
                              /*a!gridColumn(*/
                              /*label: &amp;quot;Classcode&amp;quot;,*/
                              /*value: fv!row.classcode*/
                              /*),*/
                              /*a!gridColumn(*/
                              /*label: &amp;quot;Last Modified Date&amp;quot;,*/
                              /*value: fv!row.lastModifiedDate*/
                              /*),*/
                              /*a!gridColumn(*/
                              /*label: &amp;quot;Bank&amp;quot;,*/
                              /*value: fv!row.bank*/
                              /*),*/
                              /*a!gridColumn(*/
                              /*label: &amp;quot;Calcs&amp;quot;,*/
                              /*value: fv!row.calcs*/
                              /*),*/
                              /*a!gridColumn(*/
                              /*label: &amp;quot;Opt&amp;quot;,*/
                              /*value: fv!row.opt*/
                              /*),*/
                              /*a!gridColumn(*/
                              /*label: &amp;quot;Dep&amp;quot;,*/
                              /*value: fv!row.dep*/
                              /*),*/
                              /*a!gridColumn(*/
                              /*label: &amp;quot;Stat State&amp;quot;,*/
                              /*value: fv!row.stat_state*/
                              /*),*/
                              /*},*/
                              /*pageSize: 7,*/
                              /*selectable: true,*/
                              /*selectionStyle: &amp;quot;ROW_HIGHLIGHT&amp;quot;,*/
                              /*selectionValue: local!selectedRow,*/
                              /*selectionSaveInto: {                                 */
                              /*a!save(*/
                              /*local!selectedPlan,*/
                              /*if(*/
                              /*length(fv!selectedRows) &amp;gt; 0,*/
                              /*fv!selectedRows[length(fv!selectedRows)],*/
                              /*null*/
                              /*)*/
                              /*)*/
                              /*local!selectedRow,*/
                              /*a!save(local!selectedRowData, append(local!selectedRowData,fv!selectedRows)),*/
                              /*a!save(local!selectedRowData, difference(local!selectedRowData,fv!deselectedRows))*/
                              /*},*/
                              /*shadeAlternateRows: false,*/
                              /*rowHeader: 1*/
                              /*)*/

                            }
                          )
                        }
                      ),

                    },
                    stackWhen: { &amp;quot;PHONE&amp;quot;, &amp;quot;TABLET_PORTRAIT&amp;quot; }
                  )
                }
              )
            }
          },
          {
            /* Replace this rich text with the component or rule that should populate this tab */
            a!richTextDisplayField(
              labelPosition: &amp;quot;COLLAPSED&amp;quot;,
              value: {
                a!richTextItem(
                  text: &amp;quot;The contents of the second tab would go here&amp;quot;,
                  style: &amp;quot;EMPHASIS&amp;quot;
                )
              },
              align: &amp;quot;CENTER&amp;quot;
            )
          },
          {
            /* Replace this rich text with the component or rule that should populate this tab */
            a!richTextDisplayField(
              labelPosition: &amp;quot;COLLAPSED&amp;quot;,
              value: {
                a!richTextItem(
                  text: &amp;quot;The contents of the third tab would go here&amp;quot;,
                  style: &amp;quot;EMPHASIS&amp;quot;
                )
              },
              align: &amp;quot;CENTER&amp;quot;
            )
          }
        )
      }
    }
  )
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with selectable editable grid</title><link>https://community.appian.com/thread/146162?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 05:11:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6cf59c77-c3bb-48bb-8c7a-9f101ee7a139</guid><dc:creator>Vyshnavi Naripeddi</dc:creator><description>&lt;p&gt;Hi &amp;nbsp;&lt;/p&gt;
&lt;p data-start="0" data-end="98"&gt;ID is required in &lt;code data-start="25" data-end="42"&gt;a!gridRowLayout&lt;/code&gt; when using selection in an editable grid. Try adding:&lt;/p&gt;
&lt;p data-start="100" data-end="127"&gt;&lt;code data-start="100" data-end="125"&gt;id: fv!item.plan_id&lt;/code&gt;&lt;/p&gt;
&lt;p data-start="129" data-end="146" data-is-last-node="" data-is-only-node=""&gt;This should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with selectable editable grid</title><link>https://community.appian.com/thread/146161?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 05:09:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dc47c17c-2414-412c-9005-7f83c234a72c</guid><dc:creator>thevarunbawa</dc:creator><description>&lt;p&gt;Highlight selection is to&amp;nbsp;populate&amp;nbsp;a detailed section UI on the right hand side on selection of row. Checkbox is to assign the multiple rows to a user with Assign button we have below the grid. But, I&amp;#39;m not concerned about checkbox, that&amp;#39;s not the issue. Issue is with OOTB row highlight selection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with selectable editable grid</title><link>https://community.appian.com/thread/146159?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 05:02:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db002e33-a6ae-4162-9670-256143dbcc21</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello &amp;nbsp;,&lt;/p&gt;
&lt;p&gt;What is the reason that you had to use a custom checkbox component to select the rows. Why not the selectable fields of the grid?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>