cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent check out in contract document?

Former Member
0 Kudos


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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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