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
7 subscribers
Views
2390 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Can we make identifiers of the grid conditionally?
Dharsana
Certified Senior Developer
over 8 years ago
Can we make identifiers of the grid conditionally?
OriginalPostID-162585
OriginalPostID-162585
Discussion posts and replies are publicly visible
0
PhilB
A Score Level 1
over 8 years ago
Could you clarify your question, maybe with an example?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Dharsana
Certified Senior Developer
over 8 years ago
When a row which has value A=0, then identifier should be B. Same when a row which has value B=0, then the identifier Should be A
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Dharsana
Certified Senior Developer
over 8 years ago
A, B are the column in the cdt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 8 years ago
Then yes, just set the identifiers attribute of the gridField something like:
identifiers: if(
local!cdt.A = 0,
local!cdt.B,
local!cdt.A
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 8 years ago
Apologies, just reread that - you're saying it's a row-by row identifier rather than the overall column. You can use an apply() of an if() function as above, but only if you're on 7.9 and above. If you're on an older version of appian, then you'll need to use a supporting rule and apply that rule with the two arrays as inputs.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 8 years ago
The attached should help illustrate what I mean above. It looks like, even in the most recent Appian versions, you'll need a helper rule.
identifiers.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@dharsanag Added to philb's suggestion, adding a column to the data just for maintaining the identifiers and prepopulating the same conditionally, might simplify the things.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel