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
6 replies
Subscribers
10 subscribers
Views
2407 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
Hi guys, I need some guidances here on how to use the a!recordLink component in
Will Teoh
over 9 years ago
Hi guys, I need some guidances here on how to use the a!recordLink component in the pagingGrid. We have designed to use entity-backed record and somehow, by clicking the link in the pagingGrid, it will open up a record dashboard.
Any tips? Or please point me to any examples around?
Thanks,
Will
OriginalPostID-188710
OriginalPostID-188710
Discussion posts and replies are publicly visible
0
Will Teoh
over 9 years ago
Note: PagingGird is referring to SAIL a!gridField component.
Sorry for the confusion.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
harrys
over 9 years ago
You can use a recordLink as part of the definition of an a!gridTextColumn() component, as described in the example found on
bridgestreetdev.appiancloud.com/.../SAIL_Components.html
. Hope this helps!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ray Croxon
Appian Employee
over 9 years ago
Hi Will, this is an example below for using a record ink on a column in the paging grid. You can also use the Report Builder, to create an example for you. If you use a constant of a record type to build the report, there's an option to create a record link on the column.
a!gridTextColumn(
label: "Id",
field: "id",
data: index(local!datasubset.data, "id", null),
links: apply(
a!recordLink(
label: "Go to record view",
recordType: cons!INV_RECORD_TYPE_INVESTIGATIONS,
identifier: _,
dashboard: "summary"
),
local!datasubset.identifiers
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Will Teoh
over 9 years ago
Thanks Ray! I can't put a Data Store Entity constant in the recordType right? I am getting error complaining that "Could not cast from Data Store Entity to RecordType".
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ray Croxon
Appian Employee
over 9 years ago
Yes that's right, it needs to be a Record Type constant. I'm assuming you have a record that's backed by the data entity, so you can create a new constant and give it a type of Record Type, then select the Record. You'll be able to use that constant instead.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
harrys
over 9 years ago
willt - you can create a constant of type RecordType.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel