Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+2
person also asked this
people also asked this
Replies
8 replies
Answers
1 answer
Subscribers
10 subscribers
Views
5882 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
How can i get the path of a document uploaded in appian based on document id? Th
Jess
over 11 years ago
How can i get the path of a document uploaded in appian based on document id? The idea here is save the document id of an image to db and later on display to a form using IMAGE field?...
OriginalPostID-60340
OriginalPostID-60340
Discussion posts and replies are publicly visible
+1
Jess
over 11 years ago
https://<domain>/suite/doc/<docID>
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
0
Jess
over 11 years ago
this should be mobile-enabled,that's why i cant use message field to display images.my problem is,how can i show an image using "IMAGE field" with the link - https://<domain>/suite/doc/<docID> where <docid> will change depending on a condition. If i choose ENTER URL: ="https://<domain>/suite/doc/" & pv!docID, it returns error in the expression picker. Any suggestions on how to display images using appian link?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tarun Abraham
Appian Employee
over 11 years ago
Check the URL to ensure it is correct. The other option is on the the image component select the choose file option and open the expression editor.In the editor use the todocument(docid) function to render the image.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rayudua
over 11 years ago
I have used before todocument (pv!docId) and image component
It always worked
I prefered todocument rather than url
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 11 years ago
Have you tried using the linktodocumentinternal() function?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Abhishek Shadangi
Appian Employee
over 11 years ago
Hi Jessica, since you are planning on saving the image ID to the database, I would highly recommend to use the UUID when storing in the database, because UUID is the only unique identified that stays the same when you export the Application from one environment to another. You cannot rely on ID when migrating Application over systems.
You can do the following:
1) Create an Application with the image (Document), if you don't already have an Application including this image.
2) Export the Application, and grab the UUID by reviewing the LOG file. You can use this UUID to store in the DB.
3) Now if your process get the Document back by using expression getcontentdetailsbyuuid("<image-document-uuid>").
4) You can then use the Document directly in the image forument component.
Please let me know if you have questions. Good luck!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohanp
over 11 years ago
Hi Jessica, i also tried to work for mobile enable form..i am using following procedure, not perfect for your case, but its working for mobile enable form
1) upload images in document folder
2) create a constant of document type which will hold multiple value.
3) using image field on form i am choosing file value like below :
=if(pv!ImgName="valueToBeCheck",cons!ImgConstant[1],cons!ImgConstant[2])
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jess
over 11 years ago
thanks for all your suggestions. I was able to do it correctly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel