View Work order Attachments in Location Application

Requirement Scenario: “In Location Application, We can able to view the work order associated with that particular location from Select Action — View Work Details, in addition to that customer, also wants to view the attachments specific of work order

Steps to achieve this Requirement

1.Modify the dialog box ‘View Work Details’ in ‘library.xml’ for showing attachment

  • Find for id=”wopms_byloc”
  • Modify the below xml
    <tablecol dataattribute=”description” id=”viewWOandPMs_viewWOandPMsLoc_ViewWO_tablebody_5″ inputmode=”readonly”/>
    <tablecol dataattribute=”description”
    d=”viewWOandPMs_viewWOandPMsLoc_ViewWO_tablebody_5″ inputmode=”readonly”>
       <textbox id=”viewWOandPMs_viewWOandPMsAsset_ViewWO_tablebody_5_textbox_1″ menutype=”CX_WORKATTACHMENTS” />

2.Create a new Menu Type for “CX_WORKATTACHMENTS”

  • In step 1), we have mentioned a custom menutype called “CX_WORKATTACHMENTS” which will let us open the workorder attachment when we click on it. This new menu type needs to added in MENUS.xml as shown below,<menu id=”CX_WORKATTACHMENTS” image=”menu_icon_viewattachments.gif”>  <menuitem event=”cx_workattachments” id=”cx_woview” label=”View Attachments”/>

3.Create a new dialog for “cx_workattachments” event

  • In Step 2), We have created a custom event called “cx_workattachments”. This event should be mapped with a custom dialog box that shows the list of attachments. In library.xml We can have this custom dialog created as,<dialog id=”cx_workattachments” label=”Work Attachments” relationship=”WORKORDER.DOCLINKS”>
    <table id=”cx_workattachments_table” inputmode=”readonly”><tablebody id=”cx_workattachments_tablebody”>
    <tablecol dataattribute=”document” id=”cx_workattachments_table_tablebody_4″ label=”Document” type=”openurl” urlattribute=”weburl”/>
    <tablecol dataattribute=”docinfo.description” id=” cx_workattachments_table_tablebody_6″ label=”Description” sortable=”false”/>
    <tablecol dataattribute=”doctype” id=” cx_workattachments_table_tablebody_3″ label=”Document Folder”/>
    <tablecol dataattribute=”docversion” id=” cx_workattachments_table_tablebody_5″ label=”Document Version”/>
    <tablecol dataattribute=”printthrulink” id=” cx_workattachments_table_tablebody_9″ label=”Print”/><tablecol dataattribute=”ownertable” id=” cx_workattachments_table_tablebody_1″ label=”Application”/><tablecol filterable=”false” hidden=”false” id=” cx_workattachments_table_tablebody_7″ mxevent=”linkproperties” mxevent_desc=”Attachment Properties” mxevent_icon=”img_information.gif” sortable=”false” type=”event”/><tablecol filterable=”false” hidden=”false” id=” cx_workattachments_table_tablebody_8″ mxevent=”instantdelete” mxevent_desc=”Delete Row” mxevent_icon=”btn_delete.gif” sortable=”false” type=”event”/>
    <buttongroup id=” cx_workattachments_2″>
    <pushbutton default=”true” id=” cx_workattachments_2_1″ label=”OK” mxevent=”dialogok”/>

4.Re-start the Maximo server for the changes to reflect

Explore More About EAM360

Submit your email with us to connect and discuss more about the EAM360 mobile applications and how we can enhance your Enterprise Asset Management processes.