Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
3 replies
Subscribers
7 subscribers
Views
1476 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Is there any way i can show the documents with their type Image in a two section
harshav
over 10 years ago
Is there any way i can show the documents with their type Image in a two section column, I want the same functionality like documentlist() function, can it be done in SAIL i am using V 7.8. please suggest. For Eg if i am shwoing a PDF document to the User i should get it like the PDF image and the name of the document side of it so that the user can click on it and download,
I tried the a!linkfield i am getting only the link and i tried an image keep side of it but it is looking odd,
I also tried the document browser, but it seems to be occupying to much space and that is not i wanted to look like i wanted to a look of document list.
Anybody please suggest.
Thanks,
OriginalPostID-137426
OriginalPostID-137426
Discussion posts and replies are publicly visible
Parents
0
radhaa
over 10 years ago
Hi Harsha,
I used one solution with supporting rule but its not a direct way.
see this example
a!imageField(
label:"image",
images:{
a!documentImage(
document: ri!pdfImage, /*pdf Image document*/
link:a!documentDownloadLink(document:todocument(4036)) /*Original document to download*/
)
}
)
1. Store possible extensions of documents in one constant array
Example; {"pdf", "doc","docx"}
2. document array which contains extension images like pdf and word.
3.I sail rule, retrieve document extension and search in extension array and get the index and retrieve the document image of the given index and place it in document image component.
hope this helps to you.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
radhaa
over 10 years ago
Hi Harsha,
I used one solution with supporting rule but its not a direct way.
see this example
a!imageField(
label:"image",
images:{
a!documentImage(
document: ri!pdfImage, /*pdf Image document*/
link:a!documentDownloadLink(document:todocument(4036)) /*Original document to download*/
)
}
)
1. Store possible extensions of documents in one constant array
Example; {"pdf", "doc","docx"}
2. document array which contains extension images like pdf and word.
3.I sail rule, retrieve document extension and search in extension array and get the index and retrieve the document image of the given index and place it in document image component.
hope this helps to you.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data