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
7 replies
Subscribers
6 subscribers
Views
2195 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
In a Tempo Task, I am displaying a grid with 14 columns. One of the column will
Manikandan Ganapathy
over 10 years ago
In a Tempo Task, I am displaying a grid with 14 columns. One of the column will provide a link to a document for the user, which is optional. If the process instance(a row) has a record in it, then the link should be shown otherwise it shud not. How to achieve this functionality? I am trying the below code, but ending up with the error."Interface Definition: Expression evaluation error at function a!gridField [line 33]: Type Validation: null"
a!gridTextColumn(
label: local!datasubset.columns[11].label,
field: local!datasubset.columns[11].field,
data: if(
local!datasubset.totalCount=0,
{},
local!datasubset.data[11].cells.value
),
links:
if(rule!APN_isBlank(local!datasubset.data[11].cells.value),{},
apply(a!documentDownloadLink(document: _,label: _),
merge(
local!datasubset.data[16].cells.value,
local!datasubse...
OriginalPostID-124214
OriginalPostID-124214
Discussion posts and replies are publicly visible
0
Manikandan Ganapathy
over 10 years ago
...t.data[11].cells.value
)
)
),
alignment: local!datasubset.columns[11].alignment
),
Please suggest. I am displaying a label in Column 11 and retrieving the doc id from column 16.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Navajith K
over 10 years ago
instead of "a!documentDownloadLink", could you please try to use "a!recordLink"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Manikandan Ganapathy
over 10 years ago
Hi no.no...it is not a record. what i mentioned as record is a single row instance...i need to check if there is a document value then display the column data with the link . or else just return a blank value. I need to know how to check the whether the value is null in each and every cells of a datasubset.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Manikandan Ganapathy
over 10 years ago
Any suggestions please?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sagarl511
A Score Level 2
over 10 years ago
Create a rule called : createDocumentDownLoadLink with definition :
=if(or(isnull(ri!documentId),isnull(ri!label)),{},a!documentDownloadLink(ri!documentId,ri!label))
Then use apply(rule!createDocumentDownLoadLink,merge(local!datasubset.data[16].cells.value,local!datasubset.data[11].cells.value)).
This will return download link only if document id or label is not null. Please modify as per your need
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Manikandan Ganapathy
over 10 years ago
Thanks..But when i try this i get the below erro
nterface Definition: Expression evaluation error at function a!gridField [line 33]: Type Validation: [Lcom.appiancorp.core.data.Variant; cannot be cast to com.appiancorp.core.data.Record
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Manikandan Ganapathy
over 10 years ago
Any suggestions please?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel