Skip to Content
avatar image
Former Member

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.

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

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

    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

    Add comment
    10|10000 characters needed characters exceeded