<?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>Disable document download link field in  Read Only grid</title><link>https://community.appian.com/discussions/f/general/21148/disable-document-download-link-field-in-read-only-grid</link><description>Hi, 
 I want to disable document link from read only grid if document is not exists or deleted from document folder.I am using following code to show and download document from read only grid. 
 a!gridColumn( label: &amp;quot;File Name&amp;quot;, value: a!linkField( links</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Disable document download link field in  Read Only grid</title><link>https://community.appian.com/thread/82428?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 14:07:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:730f041a-97e9-4c26-9ab3-5fb6f7875465</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;For the past several years at least, I have strongly recommended that developers &lt;strong&gt;not&lt;/strong&gt; use &lt;em&gt;a!linkField() ...&lt;/em&gt; for anything, really.&amp;nbsp; Instead, use &lt;strong&gt;&lt;em&gt;a!richTextDisplayField()&lt;/em&gt;&lt;/strong&gt; which includes far more functionality and flexibility.&amp;nbsp; Within a!richTextItem, you can dynamically set a link with a showWhen parameter, and control what the text says (and its formatting) for different scenarios.&amp;nbsp; Pair this with functionality to check whether the doc ID is still valid (though I share Stefan&amp;#39;s concern that you&amp;#39;re deleting documents without updating the Database).&lt;/p&gt;
&lt;p&gt;I forget (off the top of my head) whether there&amp;#39;s an OOB function to check document existence based on ID, but one available plug-in is &amp;quot;&lt;a href="/b/appmarket/posts/check-object-existence"&gt;Check Object Existence&lt;/a&gt;&amp;quot; which contains one simple rule that you pass an ID to and it returns TRUE or FALSE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable document download link field in  Read Only grid</title><link>https://community.appian.com/thread/82419?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 08:46:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d964f379-d4ca-457b-9810-fe0a8c21b25f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The plugin content tools has a function getcontentobjectsdetailsbyid. That is at least one option. Why do you not update DB when deleting the documents?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable document download link field in  Read Only grid</title><link>https://community.appian.com/thread/82418?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 08:41:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bd9a1df3-011c-4497-ab3a-2f711c2c3f55</guid><dc:creator>Ankit Tewari</dc:creator><description>&lt;p&gt;Thanks. But we are not deleting&amp;nbsp;&lt;span&gt;appianDocId from our db it will be exists all time in our db, but after one week the document will be automatically deleted from Appian Document folder.On that time we have a requirement that all those document which are not existed on Document folder those link will also disabled from grid.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable document download link field in  Read Only grid</title><link>https://community.appian.com/thread/82417?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 08:30:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0ec1ddd-c7ba-4478-ad61-7f880b24b9e6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Add a showWhen to the link with a check like: &amp;quot;not(isnull(index(fv!&lt;span&gt;row, &amp;quot;appianDocId&amp;quot;, {})))&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>