on 02-23-2014 2:32 AM
Hi Experts,
We have a requirement that once a contract document is approved and is in certain phase (not executed), we should not allow the contract document to be modified. I am trying to disable the option to 'Check out' in this phase - either disable, or throw an error.
However, any error i throw on the checkout info object does not seem to work. An error is logged in NW logs, but nothing on the UI.
Checkout info Validated event document lifecycle script:
ctr = doc.getParentIBean();
if(hasValue(ctr))
{
isApprovedExt = ctr.getExtensionField("Test");
if(hasValue(isApprovedExt))
{
isApproved = isApprovedExt.get();
if(hasValue(isApproved) && isApproved.equals("APPROVED"))
{
throw doc.createApplicationException("Test", "Cannot check out in Signatures phase");
}
}
}
Any idea what I am not doing right?
Regards,
Subhasini
Hi Subhasini,
If I got your requirement clear, you want to disable the check-out option when the contract document is in any specific phase.
Go to the below path :
Administration-> Document Setup-> Contract Generation-> Library Item Phase Configuration
Edit the phase in which you don’t want the check-in/out option.
Uncheck the flag for below fields for that phase–
Allow editing
Allow revisions
Regards
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.