hi, wondering if anyone can help me with this prob...
# suitescript
p
hi, wondering if anyone can help me with this problem. I have a client script and im setting a value on trigger points for pageInit and fieldChanged. After saving the value is displayed in view mode (admin role). When going into another role the value disappears after saving. Any ideas?
m
Client scripts will perform searches and access data with the permissions of the current user role. If the role can’t see the underlying searches or the values, it will look like no results, and you’ll get fields set to blank. I’d use the role with the missing values and attempt to find the field values in the UI to be sure that’s the problem. If it is, you can either add role permissions, maybe update the records or fields to add it to the access list, or else use a Suitelet that runs as admin and have your client script call the suitelet to get the data it needs.