<?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 download only selected rows from grid to Excel?</title><link>https://community.appian.com/discussions/f/new-to-appian/20882/how-to-download-only-selected-rows-from-grid-to-excel</link><description>I see that there is a excel download button in read-only grid. 
 And can use filter to download what I want. 
 To go one more step from that and want to download only the selected rows to excel. 
 How could I do it? 
 Would be great to have example too</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to download only selected rows from grid to Excel?</title><link>https://community.appian.com/thread/81336?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 01:30:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ff63b9a-5bfe-46a3-92f7-48e40fd5b373</guid><dc:creator>dreamyoung</dc:creator><description>&lt;p&gt;Thank you!!&lt;/p&gt;
&lt;p&gt;Got it done simply.&lt;br /&gt;Was REALLY helpful!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to download only selected rows from grid to Excel?</title><link>https://community.appian.com/thread/81331?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 15:57:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:51f4b522-c80a-4555-b334-7bae7dde49bf</guid><dc:creator>Danny Verb</dc:creator><description>&lt;p&gt;Since the download to excel button takes filters into account, the quickest solution would be adding a button above or below the grid which only displays selected rows.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(
  local!selectedRows: {},
  local!filterSelectedRows: false,
  {
    a!gridField(
      label: &amp;quot;Read-only Grid&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      data: a!recordData(
        &amp;#39;recordType!{SYSTEM_RECORD_TYPE_USER}User&amp;#39;,
        {
          a!queryFilter(
            &amp;quot;myField&amp;quot;,
            &amp;quot;in&amp;quot;,
            local!selectedRows[&amp;quot;RecordType.fields.id&amp;quot;],
            local!filterSelectedRows
          )
        }
      ),
      columns: {},
      selectable: true,
      selectionValue: local!selectedRows,
      selectionSaveInto: {
        local!selectedRows
      },
      validations: {}
    ),
    a!linkfield(
      links: {
        a!dynamicLink(
          label: if(
            local!filterSelectedRows,
            &amp;quot;Unfilter selected rows&amp;quot;,
            &amp;quot;Filter selected rows&amp;quot;
          ),
          value: not(local!filterSelectedRows),
          saveInto: local!filterSelectedRows
        )
      }
    )
  }
)
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>