- create a Non-Persistent Object(my_np_object) for the dialog interface
- create an empty relationship from the main object, say (workorder2my_np_object)
- create a dialog(mydialog) in presentation xml with the relationship (workorder2my_np_object)
- create an Action or button control to call the dialog event (mydialog)
- write OLP script on INIT of my_np_object, to set default values in dialog,(optional)
- 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 MBOorigWo = 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