<?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>How to lose the selected row focus?</title><link>https://community.appian.com/discussions/f/general/14048/how-to-lose-the-selected-row-focus</link><description>Hi everyone, 
 How can I lose the selected row in a gridField?? I want this option aviable. 
 The problem is.. every time it has the same instance, so the interface selected row is the last one (I want no selection). 
 The interface with selected row</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to lose the selected row focus?</title><link>https://community.appian.com/thread/63665?ContentTypeID=1</link><pubDate>Thu, 27 Dec 2018 07:37:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:658f1ebb-ca6c-40fc-9f96-6db705e1d108</guid><dc:creator>Pablo Ramos Clemente</dc:creator><description>Hi Abhishek,&lt;br /&gt;
&lt;br /&gt;
That sounds good! The principal problema is, the interface with &amp;quot;gridselection&amp;quot; is calling by another one. is it possible change a parametre interface from outside?? In my case, unselect the grid when I push a button in other interface.&lt;br /&gt;
&lt;br /&gt;
Thanks!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to lose the selected row focus?</title><link>https://community.appian.com/thread/63664?ContentTypeID=1</link><pubDate>Thu, 27 Dec 2018 07:29:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f7ed97ea-3ed4-42a6-a9c4-92cf124d9b78</guid><dc:creator>Pablo Ramos Clemente</dc:creator><description>Hi Jonathan,&lt;br /&gt;
&lt;br /&gt;
The code is so extense, because I have distinc components (CDT, ER, CONSTANTS,..). Answering your questions:&lt;br /&gt;
&lt;br /&gt;
What&amp;#39;s the purpose for losing focus on the selected row?&lt;br /&gt;
    - The interface is a Finder, I want initialize when I enter. This interface is calling by another one, using a rule.&lt;br /&gt;
Can you define that is the meaning for having the same instance?&lt;br /&gt;
    - Once you open (and load) the interface, if you´ll back to find someone, the focus is in the last row selected.&lt;br /&gt;
&lt;br /&gt;
Regards!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to lose the selected row focus?</title><link>https://community.appian.com/thread/63660?ContentTypeID=1</link><pubDate>Thu, 27 Dec 2018 04:14:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:469626ce-14ac-4921-97bc-37299da20732</guid><dc:creator>Abhishek Manjunath</dc:creator><description>Hey Pablo,&lt;br /&gt;
&lt;br /&gt;
From your query i think you need to unselect/ Clear out  all the gridselections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This can be done by setting the gridselection.selected value to &amp;#39;null&amp;#39; in the saveInto parameter where ever you have provided your functionality (like button, link etc).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to lose the selected row focus?</title><link>https://community.appian.com/thread/63657?ContentTypeID=1</link><pubDate>Wed, 26 Dec 2018 23:41:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b857145c-98e9-42b0-bb14-e9782900effd</guid><dc:creator>jonathan.guillen</dc:creator><description>&lt;p&gt;Hello Pablo,&lt;/p&gt;
&lt;p&gt;Hope this message finds you well, can you solve the following doubts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What&amp;#39;s the purpose for losing focus on the selected row?&lt;/li&gt;
&lt;li&gt;Can you define that is the meaning for having the same instance?&lt;/li&gt;
&lt;li&gt;Can you place your code on this post? it would be pretty helpful.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I&amp;#39;ve created a straightforward example that contains the follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;List of elements shown in a data grid view.&lt;/li&gt;
&lt;li&gt;display selected elements within the data grid view through a text field Appian&amp;nbsp;object.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!selectedRowList_int: null,
  local!default_gridSelection: a!gridSelection(
    pagingInfo: a!pagingInfo(
    startIndex: 1,
    batchSize: 10
  ),
    selected: {}
  ),
  local!testList_cdt:{
    {id:1, description:&amp;quot;apple&amp;quot;},
    {id:2, description:&amp;quot;banana&amp;quot;},
    {id:3, description:&amp;quot;watermelon&amp;quot;},
    {id:4, description:&amp;quot;kiwi&amp;quot;},
  },
  with(
    local!data_datasubset: todatasubset(
      local!testList_cdt,
      local!default_gridSelection.pagingInfo
    ),
    a!formLayout(
      contents:{
        a!textField(
          label: &amp;quot;test - selected rows&amp;quot;,
          value: local!selectedRowList_int,
          readOnly: true
        ),
        a!gridField(
          selection: true,
          selectionStyle: &amp;quot;ROW_HIGHLIGHT&amp;quot;,
          identifiers: index(local!data_datasubset.data,&amp;quot;id&amp;quot;,null),
          value: local!default_gridSelection,
          saveInto: {
            local!default_gridSelection,
            a!save(
              target: local!selectedRowList_int,
              value: local!default_gridSelection.selected
            )
          },
          totalCount: local!data_datasubset.totalCount,
          columns:{
            a!gridTextColumn(
              label: &amp;quot;id&amp;quot;,
              field: &amp;quot;id&amp;quot;,
              data: index(local!data_datasubset.data,&amp;quot;id&amp;quot;,null)
            ),
            a!gridTextColumn(
              label: &amp;quot;description&amp;quot;,
              field: &amp;quot;description&amp;quot;,
              data: index(local!data_datasubset.data,&amp;quot;description&amp;quot;,null)
            )            
          }
        )
      }
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>