Maximo Open Forum

 View Only

 Stop script from running on attachments

  • Customizations
Rana Ahmed's profile image
Rana Ahmed posted 10-23-2024 09:23

We have a script on WORKORDER save launch point which does some processing.
We do not want that script to be triggered whenever someone just adds an attachment or opens a dialog which have something like this savemode="ONLOADUNLOAD"

How can I configure my workorder script to not to run on these events?
Steven Shull's profile image
Steven Shull

I tested this in my MAS 9.0 environment and I couldn't recreate it. The MBO shouldn't be triggered as saving without something being modified on the WORKORDER object. There are times that changes to a child object flags the parent object as being modified (thus triggering the save) but attachments doesn't seem to be one.

My guess is that there is an initialize event on an object/attribute on WORKORDER that is triggering the MBO to think it's being modified. If you turn SQL logging to INFO, you should be able to see what is being committed which might help you identify. IE you might see a column like DESCRIPTION being set in the update statement which would indicate we think that column is modified. You could also use: mbo.getModifiedPersistentAttributeValues() in your automation script to get the columns as well. 

Rana Ahmed's profile image
Rana Ahmed

Thanks Steven,
I just tried this in Maximo 7.6.1.3, it asks to fill all required values in the form before any one can add attachments.
and then it always called the script which is configured to run on before save launch point. It gets executed.
also, checked this mbo.getModifiedPersistentAttributeValues() does not seems to be available in 7.6.1.3