Hi,
I am having difficulty running a rule on a column in a Record List View (Entity Backed).
I have a column that displays statuses, these may be multiple different statuses so to return them I call a rule to return the ID's. To run the rule I pass in the Record ID ...
a!tagField( tags: { a!forEach( items: rule!Get_Active_Statuses( fv!row['recordType!Record_Type.fields.record_ID'] ), expression: a!tagItem( text: fv!item ) ) } )
This works in a "normal" interface, and if I hard code the id instead of looking for the record ID it works in the record view.
What am I missing with getting the the ID to use within the record view?
Thanks!
Discussion posts and replies are publicly visible
If you're trying to get the identifier for the record you can use `fv!identifier`. I also recommend having a separate row to display the record ID so you can verify your syntax is correct.
Thanks Danny, I have tried this and get the same issue.
And as a quick update, I can definitely call a rule on the Record List View within the column, it just seems to be an issue using record data within the rule itself.
Seems like an odd request, but can you remove the outer list in your `tags` parameter? Instead of
{
a!forEach(..)
}
just do
If that doesn't work, I recommend putting in a support ticket as this may be a bug
Thanks Danny, I will try this. In the meantime, I created a view that had my statuses concatenated in one column and then use foreach over that column result instead of trying to get Appian to do it