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
We have provided proper null checks for the field. For the same data, when I am clicking on button, interface is loading properly. But when its some other user, its throwing the error which i have attached. The data is not coming from any record. Its coming from an external system and we are parsing it and showing it in our UI
what's that button doing ?
On the click of button, we will call external system to retrieve data and show it on our UI.
the data to populate in the dropdown?
Hi Sarathkumar R is the button click related to populate data for dropdown choice lables/ values?
thats also coming from the system. Its empty in both cases. When i am performing the action, its working fine
so you mean the dropdown's data is empty in both cases but when you click on button it populates the data in dropdown in one case but not in another, right?
exactly.
then for the users you are trying to update the form is not populating req data in drop-down choice values
check if a null value(s) is coming from external system for the user, dropdown doesn't allow this.
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.
a!dropdownField( choiceLabels: local!data.labels, choiceValues: local!data.ids, value: if( contains(local!data.ids, ri!value), ri!value, null ), placeholder: "---Select---" )