Skip to Content
0

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

Jul 18, 2017 at 02:07 PM

65

avatar image
Former Member

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!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Sep 16, 2017 at 05:51 AM
0

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

Former Member

Share
10 |10000 characters needed characters left characters exceeded