<?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 field to have a change in variable.</title><link>https://community.appian.com/discussions/f/user-interface/23640/grid-field-to-have-a-change-in-variable</link><description>Hi guys, 
 I am having a grid where a set of data will be on display. In a column I have used Icon indicator and a dynamic link. When I click it should change from true to false or false to true and the respective icon sholud change in the grid. Any solution</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90951?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 07:11:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c5c71c9-8448-4071-87a8-a1b3d26a460f</guid><dc:creator>KavyaNatrajan</dc:creator><description>&lt;p&gt;Thank you Its working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90836?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 18:36:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5b90905-93a1-4932-8900-d4a53fd963f2</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I strongly advise your project management to upgrade to a recent version - versions as old as 17.x are not really supported anymore and you will have a hard time finding relevant support here for functionality that old.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90822?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 13:46:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ad2baf07-84b9-4a7d-8942-3419111bd1c5</guid><dc:creator>KavyaNatrajan</dc:creator><description>&lt;p&gt;It is 17 version I think. The development environment still uses this version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90709?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 19:50:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5a6be94e-cc6f-4db4-bbe0-68721d3bb9d6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What appian version are you using?&amp;nbsp; You&amp;#39;re using the deprecated version of the Paging Grid and that makes things 10 times harder than they need to be.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90691?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 09:25:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:888d10da-8a03-4d14-b61e-bebd142da1bc</guid><dc:creator>KavyaNatrajan</dc:creator><description>&lt;p&gt;The issue was to add pagination in editable grid. Since it is quite tricky and have disadvantages, we split the table to two. A grid field where the read only data from db is there and a editable grid below to add new data. So when the new user gets added it should check whether the user is active or not in the first table and also within the editable grid. If count of active user is greater than 1 it will throw error and ask user to change any one of the active so in grid field we need a option to change the active status. I have&amp;#39;nt coded for validation also. It is working within editable grid but not between 2 tables.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90690?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 09:18:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d9bc7f3-83b2-498a-9ea4-a5aca22406ac</guid><dc:creator>KavyaNatrajan</dc:creator><description>&lt;p&gt;Hi Richard,&lt;/p&gt;
&lt;p&gt;I am facing this error.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1643966305828v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Kavya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90682?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 08:04:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61d67000-9bb7-4f99-84e1-2deac4628d7e</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Hi Kavya,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can try an approach like this&lt;/p&gt;
&lt;p&gt;If you need, you can also save into ri!change according to its structure / type&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!paging: a!pagingInfo(1, 10),
  local!data: { { active: true() }, { active: false() } },
  a!gridField_19r1(
    /*use a!gridField() if you are on 19.1 version*/
    value: local!paging,
    totalCount: count(local!data),
    columns: {
      a!gridImageColumn(
        label: &amp;quot;Active?&amp;quot;,
        field: &amp;quot;active&amp;quot;,
        data: a!forEach(
          items: index(local!data, &amp;quot;active&amp;quot;, {}),
          expression: a!localVariables(
            local!change: toboolean(fv!item),
            a!documentImage(
              document: a!iconIndicator(
                icon: if(
                  local!change,
                  &amp;quot;STATUS_OK&amp;quot;,
                  &amp;quot;STATUS_NOTDONE&amp;quot;
                )
              ),
              caption: if(local!change, &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot;),
              link: a!dynamicLink(
                label: &amp;quot;change&amp;quot;,
                value: not(local!change),
                saveInto: { local!change }
              )
            )
          )
        )
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90681?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 08:00:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a7220de6-60b2-471a-ab56-443bf23ce280</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;there are several issue not quite fine:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;dynamiklink with value and saveInto which contains only an a!save&lt;/li&gt;
&lt;li&gt;the if clauses with fv!item=1,&lt;/li&gt;
&lt;li&gt;checking&amp;nbsp;index(local!data,&amp;quot;active&amp;quot;,{}),&amp;nbsp; but storing the date in a rule input&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!gridImageColumn(
  label: &amp;quot;Active?&amp;quot;,
  field: &amp;quot;active&amp;quot;,
  data: {
    a!forEach(
      items: index(
        local!data,
        &amp;quot;active&amp;quot;,
        {}
      ),
      expression: {
        a!documentImage(
          document: a!iconIndicator(
            icon: &amp;quot;STATUS_OK&amp;quot;
          ),
          caption: &amp;quot;Yes&amp;quot;,
          link: a!dynamicLink(
            label: &amp;quot;change&amp;quot;,
            saveInto: {
              a!save(
                target:local!data[fv!index].active,
                value: true
              ),
              /*bot sure if necerssary, depends on your construct*/
              a!save(
                target:ri!change[fv!index],
                value: true
              )
            }
          ),
          showWhen: toboolean(fv!item)=true
        ),
        a!documentImage(
          document: a!iconIndicator(
            icon: &amp;quot;STATUS_NOTDONE&amp;quot;
          ),
          caption: &amp;quot;No&amp;quot;,
          link: a!dynamicLink(
            label: &amp;quot;change&amp;quot;,
            saveInto: {
              a!save(
                target:local!data[fv!index].active,
                value: false
              ),
              /*bot sure if necerssary, depends on your construct*/
              a!save(
                target:ri!change[fv!index],
                value: false
              )
            }
          ),
          showWhen: toboolean(fv!item)=false
        )
      }
    )
  }
)&lt;/pre&gt;&lt;br /&gt;try this&lt;br /&gt;&lt;br /&gt;edit: sorry wrong person i replied to&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90679?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 07:53:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:187ccbe8-883d-463e-803c-7f01c964c77c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Yes.&lt;/p&gt;
&lt;p&gt;You might need to change the logic for the dynamic image a bit to work with the correct value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90678?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 07:51:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ab1a191e-9dda-47c7-9c55-15d4bace4791</guid><dc:creator>KavyaNatrajan</dc:creator><description>&lt;p&gt;Also the values getting change in ri!change but not the icons.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90676?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 07:47:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1ec8ffc-9ed3-40f1-809f-302c4e29e48f</guid><dc:creator>KavyaNatrajan</dc:creator><description>&lt;p&gt;Now it is saving the changed boolean values in ri!change. I have to save this ri!change to the local!data value ryt?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90674?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 07:35:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:597e7e0c-ab24-431a-805d-93a6b21a2da1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This is why I wrote &amp;quot;&lt;span&gt;It might be necessary to pre-populate ri!change with as many items as you have in your grid.&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90673?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 07:33:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ab81b0b-4dab-4716-88d7-2786e7afef49</guid><dc:creator>KavyaNatrajan</dc:creator><description>&lt;p&gt;It was throwing error.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1643960039459v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90671?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 07:28:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7f11a8fe-cefb-4cce-b289-ee50c57608f4</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I assume ri!change is a multiple. Then you need to address that specific value in that list. Use the square bracket notation. And there is no need to compare a boolean to &amp;quot;1&amp;quot;.&lt;/p&gt;
&lt;p&gt;It might be necessary to pre-populate ri!change with as many items as you have in your grid.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;value: not(ri!change[fv!index]),
saveInto: ri!change[fv!index],&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90670?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 07:21:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:75e2afd0-3e5f-462e-9a93-2db3009ff77c</guid><dc:creator>KavyaNatrajan</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!gridImageColumn(
                  label: &amp;quot;Active?&amp;quot;,
                  field: &amp;quot;active&amp;quot;,
                  data: {
                    a!forEach(
                      items: index(
                        local!data,
                        &amp;quot;active&amp;quot;,
                        {}
                      ),
                      expression: if(
                        fv!item = 1,
                        a!documentImage(
                          document: a!iconIndicator(
                            icon: &amp;quot;STATUS_OK&amp;quot;
                          ),
                          caption: &amp;quot;Yes&amp;quot;,
                          link: a!dynamicLink(
                            label: &amp;quot;change&amp;quot;,
                            value: if(
                              fv!item = 1,
                              false,
                              true
                            ),
                            saveInto: a!save(
                              ri!change,
                              if(
                                fv!item = 1,
                                false,
                                true
                              )
                            )
                          )
                        ),
                        a!documentImage(
                          document: a!iconIndicator(
                            icon: &amp;quot;STATUS_NOTDONE&amp;quot;
                          ),
                          caption: &amp;quot;No&amp;quot;,
                          link: a!dynamicLink(
                            label: &amp;quot;change&amp;quot;,
                            value: if(
                              fv!item = 1,
                              false,
                              true
                            ),
                            saveInto: a!save(
                              ri!change,
                              if(
                                fv!item = 1,
                                false,
                                true
                              )
                            )
                          )
                        )
                      )
                    )
                  }/*index(local!data,&amp;quot;active&amp;quot;,{})*/
                  
                )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;ri!change is a boolean variable I used for checking purpose. It was supposed to replace the value in local!data .&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Kavya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid field to have a change in variable.</title><link>https://community.appian.com/thread/90669?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 07:15:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6762ece-1d5b-4d58-992a-4ca85ee6ad1d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Please post your code, at least the saveInto.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1643958938888v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>