Showing posts with label maximodp. Show all posts
Showing posts with label maximodp. Show all posts

Friday, September 22, 2023

Invoke Direct Print of Maximo BIRT Report using Automation Script

Auto-Initiate Maximo BIRT Direct Print Function from an Automation Script.

Why we need this option ? 
We need this feature to print records automatically on event trigger or user action, for example, a scenario of printing item or PO report on receiving items.
 
Please find the steps on how to implement it: 
  • Create a custom field "Is Print" on non persistent object RECEIPTINPUT
  • Use this field to select the records for printing on the "Select Ordered Items" dialog

  • Create a script with attribute launch point on this "Is Print ?" field validation class code receiptinput.isprint.val.py .ITEMNUM field from RECEIPTINPUT object will be collected and stored in a field in PO object.

  • Create 2 attributes PRINTLIST and NPPRINTLIST (non persistent) in PO object to store the list of items selected to be printed
  • On "Before Save" of PO object, copy the values from NPPRINTLIST to PRINTLIST on an automation script of launch point PO with event as before save
  • On "After save" event of PO object, trigger direct print of a report based on the values selected on the "Select Ordered Items" dialog code po.directprint.obj.as.py