Skip to Content
Former Member
Jul 18, 2017 at 02:07 PM

What is the best way to make fields read-only?


Hello Sourcing Experts,

Our Master Agreement OnLoad script does a lot of conditional field locking using IapiDocumentLockManager.lockField. For a few fields this is OK, but we have potentially 100+ fields to lock and the script takes longer to run each time another field is locked.

My questions are:

- Is there a way to lock multiple fields with one lock statement? If so does this save time over locking each field individually?

- If using conditional page customizations, can fields be locked based on things like: Phase of the MA, Owner of the MA, Role of current user, etc.

Any feedback would be greatly appreciated to shave time off loading the documents.