Wednesday, 20 March 2019

Create Custom Dialog to get Input from User and perform Tasks | Maximo


  1. create a Non-Persistent Object(my_np_object) for the dialog interface
  2. create an empty relationship from the main object, say (workorder2my_np_object)
  3. create a dialog(mydialog) in presentation xml with the relationship (workorder2my_np_object)
  4. create an Action or button control to call the dialog event (mydialog)
  5. write OLP script on INIT of my_np_object, to set default values in dialog,(optional)
  6. write OLP script on before SAVE to perform action when dialog close. 





6. OLP on INIT script (optional):

mbo.setValue("ORGID", mbo.getOwner().getString("ORGID"))
mbo.setValue("SITEID", mbo.getOwner().getString("SITEID"))

7. OLP on Before SAVE 
mbo = mboset.getMbo(0)

# get the originator MBO
origWo = mbo.getOwner()

# perform your tasks here.

 

...


Guru Bruno also document it here in better details:
https://bportaluri.com/2019/08/custom-dialog-using-automation-scripts.html


No comments:

Post a Comment