Maximo Open Forum

 View Only
  • 1.  Can we make the Jobplan task predecessor readonly ?

    Posted 08-06-2021 10:10
    Dear Team,
    Currently as per maximo desgin the Jobplan Task predecessor field is editable and allows to modify the data in ACTIVE status.
    I want to restrict this field so that no one can edit or change the value once predecessor data filled.

    The attribute predecessor is a non persistent and i am unable to restrict this from global data restriction.

    Any help on this is highly appreciable.
    #Customizations
    #MaximoUserGroups
    #WorkManagement

    ------------------------------
    Pradeep Rout
    TCSL
    ------------------------------


  • 2.  RE: Can we make the Jobplan task predecessor readonly ?

    Posted 08-09-2021 09:20
    Hi Pradeep,

    Have you tried adding it to the global data restriction? I know the description of PREDECESSORTASKS is "A non-persistent field..." but when looking in DB Config at the attribute on the JOBTASK object its showing the field as persistent. I also double checked by adding JOBTASK to an object structure and looking at the "Exclude/Include" fields and it's showing as a persistent field there too...

    Thanks,

    ------------------------------
    Matt McGuire
    Aquitas Solutions
    ------------------------------



  • 3.  RE: Can we make the Jobplan task predecessor readonly ?

    Posted 08-10-2021 14:50
    Agreed with the above, the field is actually persistent even though the description says otherwise. So you might start there.

    The problem is that users can select values from the lookup to change the field even though the field looks read-only, correct? I am wondering if you could place a restriction on JPTASKRELATION. That table is where the predecessor data is stored. You could try a global data restriction on the object perhaps, or an automation script that throws an error if the job plan is in active status.

    ------------------------------
    Danielle Newhouse
    ------------------------------



  • 4.  RE: Can we make the Jobplan task predecessor readonly ?

    Posted 08-11-2021 05:58
    Dear Danie,

    I tried with GDR (Global Data Restriction) by hidding the JPTASK attribute but it did not help still the lookup data is coming and i am able to select.

    ------------------------------
    Pradeep Rout
    TCSL
    ------------------------------



  • 5.  RE: Can we make the Jobplan task predecessor readonly ?

    Posted 08-11-2021 09:25
    Hi Pradeep,

    As Danielle alluded to you may look at creating a launch point automation script to set the field to read only. I'm thinking code would be something like:

    if PREDECESSORTASKS is not none and status is active: 
    PREDECESSORTASKS readonly = True

    Below is a useful link from IBM detailing a basic set readonly automation script

    Automation Scripting Object Launch Point Setting Field readonly

    ------------------------------
    Matt McGuire
    Aquitas Solutions
    ------------------------------