Skip to Content

disable/lock (Delete/Trash Icon) when Contract Document in EXECUTED phase

Hi,

Is there any settings to automatically disable the Trashcan/Delete Icon on Contract Document Tab, when document reaches EXECUTED phase?

If I write script to lock the same, what will be the field id? I tried using DELETE but it didnt work.

Thanks,

Saloni

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2011 at 07:45 PM

    Saloni,

    I am not sure about the automatic disabling of the Delete icon but we had a requirement wherin we were supposed to prevent Documents --> Cancel of a MA if Contract document was in the Executed phase. Maybe this can give you some idea.

    Scripting Context: Document Lifecycle Event

    External ID:CUSTOM-ValidateMAChecks

    Class: Master Agreement(1004)

    Target: Validated

    // Create an instance of class ApplicationException for error handling purposes

    ApplicationException ae = new ApplicationException();

    // Declare variables

    // "CTR_IS_RELEASED" is an OOB field.

    ctrIsReleased = doc.getExtensionField("CTR_IS_RELEASED").get();

    // If contract is executed i.e. CTR_IS_RELEASED checkbox is checked and document is

    // canceled via toolbar then do not allow cancellation and raise exception.

    if(doc.isCancelled() @and ctrIsReleased)

    {

    // Chain a new application exception

    ae.chainAtEnd(doc.createApplicationException("CTR_IS_RELEASED","xxx.executedagreement_cancel"));

    }

    Hope this helps,

    Vikram Shukla

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2011 at 08:29 AM

    Hi Saloni ,

    When the contract Document is in Executed phase ,the Delete/Trash Icon is disabled when I have the following values in System Administrator Security Profile for Contract Generation Access rights: I have Tested it . Pls create new contract and Check once!.

    Create Allow

    View Allow

    Edit Allow

    Delete Not Set (I guess you have put Deny here)

    Administrative Delete Not Set

    Purge Not Set

    Import Allow

    Hope it Helps ,I am working on Sourcing 7.0 SP1. On which Version you are working?..

    (When you are checking , Inactive the related script Definitions)

    Regards,

    Uday.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.