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
2 replies
Subscribers
7 subscribers
Views
1294 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi All, I would like to do an apply function on a safeLink. Basically
aswinb
over 10 years ago
Hi All,
I would like to do an apply function on a safeLink. Basically the code looks like this:
apply(
a!safeLink
(
uri: urlforrecord(cons!recordType, _)
),
local!datasubset.data.primaryKey
)
This is happening inside a gridField for a column that I want to display as a link. I would like the users if they click on the link open the result in a new tab. I found only this combination of safelink and the function of urlforrecord to yield that result. But right now it is issuring a JS error saying that it cannot cast from function or rule to type SAFEURI. the uri tab of the safelink expects a type of SAFEURI and that is not liked by the apply function. Is there any way around this?...
OriginalPostID-118314
OriginalPostID-118314
Discussion posts and replies are publicly visible
Parents
0
chandhinir
over 10 years ago
Hi Aswin,
Try this code
if(local!datasubset.totalCount=0, {}, apply(a!safeLink(uri: _, label: _), merge(urlforrecord(cons!recordType, local!datasubset.identifiers),local!datasubset.data.field)))
local.datasubset.data.field -->this value will the label for the link
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
chandhinir
over 10 years ago
Hi Aswin,
Try this code
if(local!datasubset.totalCount=0, {}, apply(a!safeLink(uri: _, label: _), merge(urlforrecord(cons!recordType, local!datasubset.identifiers),local!datasubset.data.field)))
local.datasubset.data.field -->this value will the label for the link
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data