Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only

Opening the Attached Docs "Add New File" dialog from an automation scripts

  • 1.  Opening the Attached Docs "Add New File" dialog from an automation scripts

    Posted 7 hours ago

    I'm wanting to force users to add an attachment if one doesn't exist in a specific attachment folder when they go to complete a work order, so I'm trying to get the "Add New File" dialog (id draddnewattachmentfile) to pop up.

    I've tried to invoke service.launchDialog("draddnewattachmentfile"), which launches the dialog ok.... just with invalid bindings. It seems to behave as if it's ignoring the DOCLINKS relationship since the "DESCRIPTION" attribute is the only component that doesn't have an invalid binding - it's grabbing that from WORKORDER.  I wasn't sure if this was due to me initially firing it from the WOCHANGESTATUS object, but I've tried firing it from WORKORDER as well and get the same results. I then tried just sticking the event on a push button and throwing it on the work order - same results. 

    This obviously works fine if I go to it through the normal Attachments menu, but if I try to invoke the dialog through a script or the event from a push button, I get invalid bindings.



    ------------------------------
    Brandon Fisher
    ------------------------------