Python

Python

Python

 View Only
  • 1.  Automation script (python) to create warning message box popup

    Posted Tue April 15, 2025 09:40 AM

    Hello. I'm trying to create warning message box popup in Maximo 7.6.1.3 where after Labor entry is created and saved under Work Orders/ Actuals tab (Labtrans table), then a warning message box will come up to make sure to create a Log entry as well under Log tab.  

    Here is the script (automation script in python) I created below. It works but the issue is the same warning message pops up even if the update or new item was added in other areas of the Work Order and not just the Labor tab.  I need to be able to display this pop up ONLY when adding  or editing LABOR TAB under ACTUALS tab.  Any one else out there ran into something similar? Thanks.

    Franc

    wo_mbo = mbo.getMboSet("WORKORDER")
    if not wo_mbo.isEmpty():
        wo_type = wo_mbo.getMbo(0).getString("WORKTYPE")
        if wo_type != 'ADM':
            errorgroup = "mygroup"
            errorkey = "mykey1"



    ------------------------------
    Francis D. Flores
    ------------------------------


  • 2.  RE: Automation script (python) to create warning message box popup

    Posted Tue April 22, 2025 10:19 AM

    Hi Francis, can you please help me with the launch point details for the script you created?



    ------------------------------
    Sumit Roy
    ------------------------------



  • 3.  RE: Automation script (python) to create warning message box popup

    Posted Fri April 25, 2025 01:33 PM
      |   view attached

    Hi Sumit. 

    Pls. see attached file. Thanks.

    Francis



    ------------------------------
    Francis D. Flores
    ------------------------------



  • 4.  RE: Automation script (python) to create warning message box popup

    Posted Fri April 25, 2025 01:35 PM
      |   view attached

    ..



    ------------------------------
    Francis D. Flores
    ------------------------------