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
12 replies
Subscribers
6 subscribers
Views
4001 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
#Document in PagingGrid We have a requirement to show data in paging grid a
shivakanthr
over 10 years ago
#Document in PagingGrid
We have a requirement to show data in paging grid along with document link.
when I am showing data(fetching from DB) in the Paging grid it only shows document id. How to show the document as attachment in the paging Grid , I tried to use todocument and linktodocument function but the document link is not displayed. I am working on v7.3
Thanks in advance
OriginalPostID-147939
OriginalPostID-147939
Discussion posts and replies are publicly visible
Parents
0
nileshr
over 10 years ago
Try using the following method.
Create 2 rules for generating the document name and a download link for a given document Id.
Let's say rule!GetDocumentName as
document(
ri!DocumentId,
"name"
)
and
rule!GetDocumentLink as
a!documentDownloadLink(
document: ri!DocumentId,
label: document(ri!DocumentId,"name")
)
Now, in your grid use the following code snippet.
a!gridTextColumn(
label: "Document",
field: "documentId",
data: apply(
rule!GetDocumentName,
index(
local!DataSubset.data,
"documentId",
{}
)
),
links: apply(
rule!GetDocumentLink,
index(
local!DataSubset.data,
"documentId",
{}
)
),
alignment: "LEFT"
)
Here "documentId" will be your CDT field for document Id.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
nileshr
over 10 years ago
Try using the following method.
Create 2 rules for generating the document name and a download link for a given document Id.
Let's say rule!GetDocumentName as
document(
ri!DocumentId,
"name"
)
and
rule!GetDocumentLink as
a!documentDownloadLink(
document: ri!DocumentId,
label: document(ri!DocumentId,"name")
)
Now, in your grid use the following code snippet.
a!gridTextColumn(
label: "Document",
field: "documentId",
data: apply(
rule!GetDocumentName,
index(
local!DataSubset.data,
"documentId",
{}
)
),
links: apply(
rule!GetDocumentLink,
index(
local!DataSubset.data,
"documentId",
{}
)
),
alignment: "LEFT"
)
Here "documentId" will be your CDT field for document Id.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data