<?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>a!document link component with a!startprocess link in one click</title><link>https://community.appian.com/discussions/f/user-interface/29203/a-document-link-component-with-a-startprocess-link-in-one-click</link><description>Hi everyone, I ran into the following problem: I have a job model that downloads files from an S3 bucket and stores the downloaded documents on a constant in document format. I would like to know if by clicking on the image given by the a!documentimage</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: a!document link component with a!startprocess link in one click</title><link>https://community.appian.com/thread/115544?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 09:14:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bd67e95c-4511-40c5-9844-5991c9d2bb27</guid><dc:creator>albertob5031</dc:creator><description>&lt;p&gt;The constant it&amp;#39;s updated with the correct value every time the process model it&amp;#39;s triggered. My problem it&amp;#39;s that i can&amp;#39;t use the appian folder because they refresh after a certain amount of time, so the document won&amp;#39;t be avaiable to be displayed on the interface and it will cause an error. So this is why i have to download these files from an external sources&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!document link component with a!startprocess link in one click</title><link>https://community.appian.com/thread/115541?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 08:57:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49bf676c-59d1-4504-8849-ce380bcf7e11</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I still do not get the point with the constant, but anyway ...&lt;/p&gt;
&lt;p&gt;Sorry, I have to support&amp;nbsp;Mathieu&amp;#39;s answer. There is no reliable and good way of doing this. I thought you just want to display that document on screen. But streaming a document from another source through Appian directly to the user is a different thing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!document link component with a!startprocess link in one click</title><link>https://community.appian.com/thread/115539?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 08:47:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a51cdebc-0458-4c25-a931-9cff97ba5696</guid><dc:creator>albertob5031</dc:creator><description>&lt;p&gt;i want to use a a!documentimage component in an interface but instead of having a download link like this:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;a!documentDownloadLink(&lt;br /&gt; label: &lt;br /&gt; document(&lt;br /&gt; documentId:tointeger(cons!GEC_testttt),&lt;br /&gt; property: &amp;quot;dateCreated&amp;quot;&lt;br /&gt; ), &lt;br /&gt; document: local!message&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;that take a preexisting document inside appian, i want to pass a document that it&amp;#39;s downloaded with a process model, INSIDE this&amp;nbsp;&lt;span&gt;a!documentDownloadLink. So the user of the interface click on this link, the process model starts, it upload the constant with the correct document and it download this file, as a normal a!documentImage works. Now i achieve this with 2 button, one with a!start process model link and one separate with this documnt download link, but it&amp;#39;s bad for my user experience. I want to achieve this with one click&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!document link component with a!startprocess link in one click</title><link>https://community.appian.com/thread/115535?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 08:38:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f27e35d-c2d4-4586-acb5-5d7ef7bcb2b1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;First, please clarify what you mean with &amp;quot;start the process that downloads the file to me and then actually see the download of the file&amp;quot;.&lt;/p&gt;
&lt;p&gt;Then, you cannot add multiple links to the link parameter.&lt;/p&gt;
&lt;p&gt;Why do you use a constant to reference the downloaded file? Is there only a single user using this app?&lt;/p&gt;
&lt;p&gt;This is a bit of a confusing situation. Please clarify. I do not want to spend my time on trying to guess what you want to do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!document link component with a!startprocess link in one click</title><link>https://community.appian.com/thread/115532?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 08:27:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6df258e9-8d80-4144-81f0-cb5a16dec2d4</guid><dc:creator>albertob5031</dc:creator><description>&lt;p&gt;Hi sir, unfortunately the direct link from the bucket it&amp;#39;s not possible. I&amp;#39;ve tried to use the&amp;nbsp;getpresignedurlfors3() function from the amazon s3 plug-in, but it doesn&amp;#39;t generate the url. Instead the download/upload s3 plug-in works well on process models&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!document link component with a!startprocess link in one click</title><link>https://community.appian.com/thread/115530?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 08:23:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a8abf6c1-acb3-458e-81ff-9b81c8a738b8</guid><dc:creator>albertob5031</dc:creator><description>&lt;p&gt;Hi sir, i&amp;#39;ve tried a solution like this, but it doesn&amp;#39;t work because the link must be a scalar and not a list of variant, any suggestions?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Local!message it&amp;#39;s initially defined as&amp;nbsp;&lt;span&gt;cons!GEC_TEST_PROCESS_MODEL and everytime it&amp;#39;s uploaded with the run of the process model&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;a!imageField(&lt;br /&gt; label: &amp;quot;&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; images: {&lt;br /&gt; a!documentImage(&lt;br /&gt; document: cons!IMAGE_TO_DISPLAY,&lt;br /&gt; caption: &amp;quot;test&amp;quot;&lt;br /&gt; link: {&lt;br /&gt; a!startProcessLink(&lt;br /&gt; processModel: cons!GEC_TEST_PROCESS_MODEL,&lt;br /&gt; bannerMessage: a!save(local!message,cons!GEC_TEST_DOCUMENT)&lt;br /&gt; )&lt;br /&gt; ,a!documentDownloadLink(&lt;br /&gt; label: &amp;quot;DOCUMENT TO DOWNLOAD&amp;quot;&lt;br /&gt; document: local!message&lt;/p&gt;
&lt;p&gt;)}&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; size:&amp;quot;ICON&amp;quot;&lt;br /&gt; ),&lt;br /&gt; align: &amp;quot;CENTER&amp;quot;,&lt;br /&gt; width: &amp;quot;AUTO&amp;quot;&lt;br /&gt; ),&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!document link component with a!startprocess link in one click</title><link>https://community.appian.com/thread/115514?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 05:30:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db1620b9-2f73-4345-8582-a3d1bd37f347</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Sure. The trick is to enable chaining in the started process. Then you can fetch the ID of the downloaded document in the onSuccess parameter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!document link component with a!startprocess link in one click</title><link>https://community.appian.com/thread/115503?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 23:57:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:38265155-63d7-4f7b-9ce5-23e0ee680bd2</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Not possible AFAIK.&lt;/p&gt;
&lt;p&gt;I think your best bet is to link directly to S3 which&amp;nbsp;is hopefully&amp;nbsp;accessible via the same SSO mechanism as your Appian instance. Otherwise, you&amp;#39;ll have to pre-download the files somehow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>