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: "File Name", value: a!linkField( links: a!documentDownloadLink( label: index(fv!row, "myFileName", {}), document: index(fv!row, "appianDocId", {}) ) ) )
Please Suggest me any solution for this.
Discussion posts and replies are publicly visible
Add a showWhen to the link with a check like: "not(isnull(index(fv!row, "appianDocId", {})))"
Thanks. But we are not deleting 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.
The plugin content tools has a function getcontentobjectsdetailsbyid. That is at least one option. Why do you not update DB when deleting the documents?