on 11-12-2013 8:06 AM
Hi All,
Can we lock the agreement status field in UI of master or sub agreement.
I want to lock that field while its status moved to "Executed".
If any one of you have idea please share with me.
Thanks,
Alex
Hi Alex,
Yes, the agreement for both master and sub status field can be locked. The locking of the field has to be done through scripting.
If you are familiar with scripting, you need to create a script for Master Agreement class on the save or validate event of the document and put a conditional statement lock the Status field when the value of the status is 'Executed'.
Here is sample code that might help.
Make sure the script is created on MA Validate or MA Save event of scripting.
strEXECUTED = "Executed";
String status = doc.getStatusRef().getDisplayName(session);
if strEXECUTED.equals(status)
IapiDocumentLockManager.lockField(session,maBean,"STATUS");
Regards,
Parankush
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.