Hi,
I have the following code:
a!gridTextColumn( label: "Approved By", field: "approvedString", data: index(local!datasubset.data,"approvedString", null))
That returns a text array:
111, 222, 333
I want to send each of these array elements to expression rule!convertID that will convert it to a username.
For example:
Please can someone please tell me the syntax to apply the the rule!convertID to each element returned by data: index(local!datasubset.data,"approvedString", null))?
Thank you.
Discussion posts and replies are publicly visible
hi rizviz, once try below code,and make sure that rule input of rule rule!AH_formatUserName must be of type "text" because the approvedString is text Array a!gridTextColumn( label: "Approved By", field: "approvedString", data: apply( rule!AH_formatUserName(_), index( local!datasubset.data, "approvedString", null ) ) )
thanks kchaitanyam,
this is still giving me the below error. It seems the apply function is not working in this use case. Will try another workaround:
Could not display interface. Please check definition and inputs.
Interface Definition: Expression evaluation error in rule 'ah_formatusername' at function 'user' [line 3]: Error evaluating function 'user' : [InvalidUserException]
thank you.