<?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>Need to reset editable grid</title><link>https://community.appian.com/discussions/f/user-interface/18264/need-to-reset-editable-grid</link><description>Hi , 
 
 I have one editable grid where selected rows are not getting reset. 
 1. Table is having 10 rows 
 2. Selected 3rd n 4th rows by clicking on checkbox at the right most side. 
 3. I have one reset button with that i make all values null like all</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Need to reset editable grid</title><link>https://community.appian.com/thread/71950?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 07:56:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c7c6ab7e-98ac-4b5d-808d-e7435a02d2b1</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;I had already fixed this. Your assumetion is very correct. Button was outside the with() . Due to that grid total count check was now working. Now I kept inside and its working fine with totalCount properties.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to reset editable grid</title><link>https://community.appian.com/thread/71949?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 04:37:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a7aeeedc-5710-43d2-b16e-6f1011e7683f</guid><dc:creator>ankitab0001</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/sauravk"&gt;sauravk&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To what I understood from you post, You want to reset all selections on the click of reset button.&lt;/p&gt;
&lt;p&gt;You can try something like this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  
  local!selected: tointeger({}),
  local!resetAction,
  local!data: {
    {
      id: 1,
      name: &amp;quot;abc&amp;quot;,
      contact: 1234
    },
    {
      id: 2,
      name: &amp;quot;pqr&amp;quot;,
      contact: 5678
    },
    {
      id: 3,
      name: &amp;quot;lmn&amp;quot;,
      contact: 3452
    }
  },
  
  with(
   
    {
    a!gridLayout(
      label: &amp;quot;Test&amp;quot;,
      totalCount: count(local!data),
      headerCells: {
        a!gridLayoutHeaderCell(
          label: &amp;quot;ID&amp;quot;
        ),
        a!gridLayoutHeaderCell(
          label: &amp;quot;NAME&amp;quot;
        ),
        a!gridLayoutHeaderCell(
          label: &amp;quot;CONTACT&amp;quot;
        )
      },
      rows: a!forEach(
        local!data,
        a!gridRowLayout(
          id: fv!index,
          contents: {
            a!integerField(
              value: fv!item.id,
              readOnly: true()
            ),
            a!textField(
              value: fv!item.name,
              saveInto: fv!item.name
            ),
            a!integerField(
              value: fv!item.contact,
              saveInto: fv!item.contact
            )
          }
        )
      ),
      selectable :true(),
      
      selectionValue: local!selected,
      selectionSaveInto : local!selected
    ),
    
    a!buttonLayout(
      primaryButtons: {
        a!buttonWidget(
          label:&amp;quot;Reset&amp;quot;,
          value: null,
          saveInto: local!selected
        )
      }
    )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to reset editable grid</title><link>https://community.appian.com/thread/71878?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 12:58:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b96c3862-5e16-439a-890c-cedd1098e907</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;We have no way of knowing what the issue might be unless you post your code here (or a representative sample of it, including your grid definition with selections, as well as the button/control you&amp;#39;re trying to use to deselect).&amp;nbsp; Any answer we could provide before this would be pure guesswork.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to reset editable grid</title><link>https://community.appian.com/thread/71875?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 09:10:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4c0febe2-07f4-4dd3-9ffb-f2c8f74c0284</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;In other way also tried . I have tried to save value of gridField in local!selected variable n tried to reset by assigning null in reset link. But nothing is happening.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to reset editable grid</title><link>https://community.appian.com/thread/71874?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 09:09:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5028b26b-b552-4b21-b961-63d60f3a2413</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;selected: local!selected&lt;/p&gt;
&lt;p&gt;I have used this way also where i am keeping&amp;nbsp;local!selected under selected property of gridField. But as per document selected property is not available for gridField&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to reset editable grid</title><link>https://community.appian.com/thread/71868?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 08:05:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:93e23f1b-909b-4457-8b8d-0e5271e84565</guid><dc:creator>ManuelHTG</dc:creator><description>&lt;p&gt;local!selected is an array with the index of the value selected (i.e. 3,4) , if you want to reset, you should do in an a!save(local!selected,null) inside your reset button. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to reset editable grid</title><link>https://community.appian.com/thread/71865?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 06:44:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f45f7ced-41c5-4829-933e-62f845d33a87</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;I am using&amp;nbsp;a!gridField where i am unable to find any properties which can hold this count . As we have options in&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-sail"&gt;&lt;span class="nf"&gt;a!gridLayout -  selectionValue: local!selected,&lt;br /&gt; selectionSaveInto: local!selected&lt;br /&gt;&lt;br /&gt;How we can achieve same thing here.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>