Hi,
local!initProvidersSegment.ServiceLocation.Addresses is my CDT where Addresses is a list of array. In the grid selection i have selection value in local!selection i want to find local!selection in Addresses except one field in local!selection.Action field which is updated and CDT values remains untouched.. Suggest an expression.
Discussion posts and replies are publicly visible
Can you go into more detail? I have a hard time understanding what you want to achieve.
+1 . Would be better if you can share the expression you have tried so that we can get familiar with the locals you have mentioned in the description, otherwise it's a guessing game.
a!forEach(local!initProvidersSegment.ServiceLocation.Addresses, fv!item[where(local!selection.AddressType = fv!item.AddressType,0)]).Action = "P",
Throws an error:
Expression evaluation error [evaluation ID = WBZ1N] in rule 'pm_prnupdateform' : Error in a!forEach() expression during iteration 1: Expression evaluation error at function 'where' parameter 1 [line 1146]: Cannot compare incompatible operands of type Map and type PM_PRN_ServiceLocation_AddressesSeg.
What are you trying to achieve?
Use of where() function do no makes sense, I think you want to be using wherecontains() here and make sure to cast the inputs to the same type.
I am able to acheive with foreach loop.
I have one more question is it possible to disable the confirmbutton in popup message of submit button conditionallly so the user is forced to go back to the form by clicking cancel button of popup.
No you cannot disable the confirmButtonLabel, it will automatically populate if we provide confirmHeader or confirmMessage parameters. You can disable the Submit button conditionally, which will prevent the user from submitting the form.