On the click of a button, we are populating values from the process model back to the interface. This is working perfectly for some users. But for some users, its throwing expression evaluation error even when the data is same in both cases. Could this be related to any permission or security issue?Update : This is occuring for users who only have access to site page.Thanks in advance
Discussion posts and replies are publicly visible
Sarathkumar R Do one thing. In the dropdown's value, check if the value is a part of choiceValues, then only show it otherwise show null.
You can achieve this using contains() function.
Something like this.
a!dropdownField( choiceLabels: local!data.labels, choiceValues: local!data.ids, value: if( contains(local!data.ids, ri!value), ri!value, null ), placeholder: "---Select---" )
We have made proper null checks to avoid getting these errors. The data I am passing does not vary. Only the response is different for 2 different users. So we are a little confused over this. We are now noticing this in all environments.
Try this.
I am actually doing this and its very working perfectly for me. Only for the other user, its throwing error.
It should not throw an error for any user as the null is already being checked. Can you tell a little more about the error?
error does not says that the entire choices value is null, it says one of the value or more values are null in the list of choices values which dropdown field doesn't allow. could you please check for this Sarathkumar R
Did you try to open that process instance to see that the values in your variable are being populated? Also, can you add screenshots of your process model and the code you have on the button (to save the data back in variables)?
let me check once more. Will update.
If you are having admin access then it will not throw any error