Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
Hi every one,
If file is missed or corrupt, I wanna the text display "No find image" instead of text "Document not avaiable", like image below.
Thanks a lots.
Discussion posts and replies are publicly visible
Document corrupt is very rare chance in Appian but to show the something else then you can use the if else condition and show the error if the condition is false.
Something like below:
a!localVariables( local!documentAvailable: getcontentobjectdetailsbyid(ri!docId), local!doc: if( local!documentAvailable = "No object with this ID has been found", {}, if( keyval( local!documentAvailable, "Type", ": ", ", Created" ) = "Document", document(ri!docId, "extension"), {} ) ), if( local!doc = "pdf", a!documentViewerField( document: todocument(ri!docId) ), a!cardLayout( style: "STANDARD", contents: { a!richTextDisplayField( align: "CENTER", value: a!richTextItem(text: "No find image") ) } ) ) )