cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos
174

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.

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Phil,

"OnLoad script does a lot of conditional field locking using IapiDocumentLockManager.lockField."

Ans. I'm afraid that is the only option that we have. You may try to optimize your code.

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

Ans. Please try out the IapiDocumentLockManager.lockDocument() method.

- 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.

Ans. No

muralidharankm