function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jmasl7xjmasl7x 

Determining Read-Only fields in an S-Control

Is there any way for an S-Control to determine whether specific records of an object are read-only for the user before it attempts to update (or create) them?

The problem we have is that an S-Control allows a user to edit or insert records on an object ('Order Item') which is in a master-detail relationship with another object ('Order'). Depending on who the owner of the associated master record is, the user may or may not have the rights to perform these operations, although in the case of update the user does see the record to be updated, albeit as read-only.

I'd like the S-Control to detect this situation and notify the user rather than having the API call to create/update fail when the user attempts to save the changes.

Is this possible somehow?