cancel
Showing results for 
Search instead for 
Did you mean: 

Making Custom Collection Field Read-only

Former Member
0 Kudos

Hi Experts,

Looks like Page customization do not privide option to make custom extension collection field read only.

Locking each field some times work.. Could lock a field with Value List value/Custom Object.

Is there any suggestion, if you have come across making certain field on a collection read only.?

Please advise..

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Victor,

Using iterator or for loop  you can lock all collection member by using syntax:

IapiDocumentLockManager.lockField(session,doc,collection(i));

You can make a certain member of a collection read only by giving a hard-coded value for the variable i.

It should work.

Regards,

Kumud

Former Member
0 Kudos

Thanks Kumud for the reply.

Only problem I faced here is that it works on all target except onCreate.. I mean I want it to be locked when agreement is being created using Action tool bar from a project..

Same code on load works perfectly..Any idea..

Former Member
0 Kudos

Hi Victor,

It could happen that the script may not work for created event. You can write the script in Agreement save or validate target. Once the toolbar script calls save event while running the script, the collection which you want will be locked.

The script which is creating Agreement from the project toolbar should call the save event of Agreement.

Kumud

Answers (1)

Answers (1)

Former Member
0 Kudos

Victor,

Thanks for the rewards

Regards,

Kumud