<?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>documentdownload link</title><link>https://community.appian.com/discussions/f/user-interface/23337/documentdownload-link</link><description>Hi All, 
 In My interface I am exporting the data story entity to csv using &amp;quot;exportdatastoreentitytocsv&amp;quot; . 
 once export is done, I am giving an option to download that exported file using documentdownload link in a card interface (I used card layout</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: documentdownload link</title><link>https://community.appian.com/thread/89655?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 17:29:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fd63097c-52e7-4f84-98d8-ac2b8c9da179</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="43921" url="~/discussions/f/user-interface/23337/documentdownload-link/89653#89653"]checking the user has downloaded this document or not[/quote]
&lt;p&gt;Yup, that&amp;#39;s what I meant.&lt;/p&gt;
[quote userid="43921" url="~/discussions/f/user-interface/23337/documentdownload-link/89653#89653"]getdownloadersfromgroup function [/quote]
&lt;p&gt;Sweet, I think I&amp;#39;d missed this one.&amp;nbsp; I think your code should work, though it&amp;#39;s sad there&amp;#39;s no way to force this to execute in a more real-time (since the lowest auto-refresh interval is ~30 seconds).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documentdownload link</title><link>https://community.appian.com/thread/89653?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 16:43:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:00ddb6b1-356f-4358-9898-b528ae350284</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;I was thinking about checking the user has downloaded this document or not.&lt;/p&gt;
&lt;p&gt;GIven Siva mentioned originally that they are generating the csv, so the user would not have already downloaded this document before, and I am assuming they would want this download for one time basis,&lt;/p&gt;
&lt;p&gt;So, they can use&amp;nbsp;getdownloadersfromgroup function available in the&amp;nbsp;&lt;a href="/b/appmarket/posts/content-security-utilities" rel="noopener noreferrer" target="_blank"&gt;Content Security Utilities&lt;/a&gt;&amp;nbsp;plugin to check if the user has downloaded the doc or not.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s something I wrote to test this. Put a document and group in the local variable to test, see comments in code&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  /*Put any valid document here*/
  local!document: cons!MY_DOCUMENT,
  local!usersDownloaded: a!refreshVariable(
    value: getdownloadersfromgroup(
      { local!document },
      /*Put any valid group here of which you are a member of*/
      cons!MY_GROUP
    ),
    refreshInterval: 0.5
  ),
  local!documentDownloaded: contains(
    { local!usersDownloaded },
    tostring(loggedInUser())
  ),
  {
    a!cardLayout(
      contents: a!richTextDisplayField(value: &amp;quot;Download&amp;quot;, align: &amp;quot;CENTER&amp;quot;),
      link: a!documentDownloadLink(document: local!document),
      showWhen: not(local!documentDownloaded)
    ),
    a!richTextDisplayField(
      align: &amp;quot;CENTER&amp;quot;,
      value: &amp;quot;You have downloaded the document successfully&amp;quot;,
      showWhen: local!documentDownloaded
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documentdownload link</title><link>https://community.appian.com/thread/89651?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 16:17:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d684da5e-1635-4bf8-8e80-f0627b87d483</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="43921" url="~/discussions/f/user-interface/23337/documentdownload-link/89650#89650"]logic to see if the user has clicked on the link and downloaded the document [/quote]
&lt;p&gt;Which functionality would you be using to ascertain this?&amp;nbsp; I don&amp;#39;t remember anything off the top of my head which could do this, though if I&amp;#39;m missing something I&amp;#39;d be interested to know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documentdownload link</title><link>https://community.appian.com/thread/89650?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 16:11:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ab2a7a8e-1e46-49ba-a446-8a99994dc1da</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Can you not add a back button or something like that for the user to return to the main interface?&lt;/p&gt;
&lt;p&gt;Also, is this all for saving a user&amp;#39;s click&amp;nbsp; ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If the user can wait for a while, then you could use refresh variables and set it to the min 0.5 interval (30 secs) and build up a logic to see if the user has clicked on the link and downloaded the document and accordingly revert them back to the main interface.&lt;/p&gt;
&lt;p&gt;So, the max delay would be of 30 seconds to automatically display the message&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documentdownload link</title><link>https://community.appian.com/thread/89648?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 14:49:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b1d07474-ff6a-48aa-924d-84cab2526a32</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. Then you will need to&amp;nbsp;make the user click a second time after the download to make that happen.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documentdownload link</title><link>https://community.appian.com/thread/89646?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 14:41:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6c7ae18e-acea-467d-9478-94e844375708</guid><dc:creator>sivasuryap0002</dc:creator><description>&lt;p&gt;once the document is downloaded, a message should be shown to user within the main interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documentdownload link</title><link>https://community.appian.com/thread/89645?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 14:37:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:981bd40f-9cb2-4546-accd-ad70c18ee761</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Not directly. But what is the purpose of updating the rule input?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documentdownload link</title><link>https://community.appian.com/thread/89644?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 14:36:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a10fad3a-b204-4e8a-8008-59f907d6a9e2</guid><dc:creator>sivasuryap0002</dc:creator><description>&lt;p&gt;Hello Stefan,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I just want when User click on the card document should be downloaded and at the same time rule input should be updated.&lt;br /&gt;Any other way to achieve it.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documentdownload link</title><link>https://community.appian.com/thread/89643?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 14:33:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e69922cf-d1fd-4b96-9c95-9bf2e8727874</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;A downloadLink cannot update anything. Sorry ...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What do you want to achieve?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>