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
10 subscribers
Views
2655 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
How do you make a column in a gridField link to a specific record when the recor
reginaldm
over 8 years ago
How do you make a column in a gridField link to a specific record when the recordType is expression backed?
I've tried a few things, but it has only worked once, which was a fluke.
If images are needed for a better understanding, let me know.
OriginalPostID-173252
OriginalPostID-173252
Discussion posts and replies are publicly visible
0
Chris
over 8 years ago
I ran into this issue as well when linking to an expression-backed record in feed posts as well, the resolution was to wrap the record identifier in tostring() - that might work for your case as well. The solution to my use case was essentially:
=a!toRecordIdentifier(cons!RECORD_CONSTANT,tostring(pv!CDT_var_here.uniqueId))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
reginaldm
over 8 years ago
Unfortunately, it's not serving me any justice within my gridTextColumn. It doesn't like how I'm trying to go to text values from a datasubset.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 8 years ago
Posting your code here may help. Also, I realized I do this in a report as well - this is my gridTextColumn (service backed record). In this example, fldID is the unique identifier and fldSIRnumber is displayed to the user as the record link text. local!gridData comes directly from a queryEntity() call:
a!gridTextColumn(
label: "Request #",
data: local!gridData.data.fldSIRnumber,
links:
a!applyComponents(a!recordLink(recordType: cons!SIR_RECORD,label: _, identifier: _),
merge(
index(local!gridData.data,"fldSIRnumber",null),
index(local!gridData.data,"fldID",null)
)
),
field: "fldSIRnumber",
alignment: "CENTER"
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
reginaldm
over 8 years ago
I just implemented your code and it works!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
reginaldm
over 8 years ago
Just for feedback, I tried to implement something similar before I broke and asked the community, but it seems like the applyComponents function made a big difference.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
reginaldm
over 8 years ago
broke down*
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 8 years ago
Great! a!applyComponents() is very helpful for dynamically adding SAIL components.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel