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
Hi Sarathkumar R could you share snap shot of error for better understanding of the issue
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---" )
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.