<?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>Link to download a document in a editable grid.</title><link>https://community.appian.com/discussions/f/new-to-appian/34318/link-to-download-a-document-in-a-editable-grid</link><description>Hi, 
 I have below code in one of the column of a gridLayout control. I am getting an error like 
 Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!forEach [line 24]: Error</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Link to download a document in a editable grid.</title><link>https://community.appian.com/thread/131012?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 05:49:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea587d93-cb5d-4742-b328-4f1adadef9b5</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Like Teja said, a document is only considered uploaded when you submit the interface or you use the&lt;span&gt;submitUploadedFiles() function. So if you have the file upload field in the same grid, then the download icon won&amp;#39;t make sense anyway because the user just uploaded the document so why do they need to download it immediately?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Link to download a document in a editable grid.</title><link>https://community.appian.com/thread/131005?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 04:55:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:00a3939f-d850-41a2-b9bb-0a4eaa67ba96</guid><dc:creator>Teja Kunchala</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/swapnar6405"&gt;swapnar6405&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;One doubt, &lt;br /&gt;Are you trying to upload the document in the same editable grid in one column and trying to download the same document in the documemtdownloadlink in another column?&lt;/p&gt;
&lt;p&gt;If you are doing that, you will get the same error &amp;quot;&lt;span&gt;Document Does Not Exist or has been Deleted.&amp;quot; because the document you uploaded it was not entered into filesystem.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Link to download a document in a editable grid.</title><link>https://community.appian.com/thread/131001?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 00:20:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18ed714f-1ad0-462c-8bc1-484cba7f306d</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;I am getting same kind of issue even with the below code after using &lt;span&gt;richTextDisplayField,&amp;nbsp;documentDownloadLink&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;a!richTextDisplayField(&lt;br /&gt; value: a!richTextItem(&lt;br /&gt; link: a!documentDownloadLink(&lt;br /&gt; showWhen: a!isNotNullOrEmpty(fv!item.document),&lt;br /&gt; label: if(&lt;br /&gt; a!isNullOrEmpty( fv!item.document),&lt;br /&gt; &amp;quot;&amp;quot;,&lt;br /&gt; document(fv!item.document, &amp;quot;name&amp;quot;)&lt;br /&gt; ) &amp;amp; if(a!isNullOrEmpty( fv!item.document), &amp;quot;&amp;quot;, &amp;quot;.&amp;quot;) &amp;amp; if(&lt;br /&gt; a!isNullOrEmpty( fv!item.document),&lt;br /&gt; &amp;quot;&amp;quot;,&lt;br /&gt; document( fv!item.document, &amp;quot;extension&amp;quot;)&lt;br /&gt; ),&lt;br /&gt; document: fv!item.document&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; ),&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Link to download a document in a editable grid.</title><link>https://community.appian.com/thread/131000?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 22:36:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:abde99d0-c088-49ec-a0f5-2c0f1a22ddb1</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The document IDs are there, but still, I am getting the error while performing the &amp;quot;TEST&amp;quot; in designer mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Link to download a document in a editable grid.</title><link>https://community.appian.com/thread/130994?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 19:31:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a99a0438-da4c-45fd-8290-bfcb5439faf8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;When and how is the document in question being uploaded?&lt;/p&gt;
&lt;p&gt;Further, are there any rows with an empty &amp;quot;document&amp;quot; entry?&amp;nbsp; If so, you&amp;#39;ll need to handle nulls.&amp;nbsp; My recommendation is to &lt;em&gt;&lt;strong&gt;not use a!linkfield() for any reason in any location&lt;/strong&gt;&lt;/em&gt;&lt;span style="text-decoration:underline;"&gt;&lt;/span&gt; (including but not limited to editable grids), instead you should &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;&lt;strong&gt;always use Rich Text Fields&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt; with a built-in link, where you control the link to be visible only when the conditions are correct (in this case, a document exists and has already been submitted into the filesystem).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>