Skip to content

Reports

Maximo-Backend

PDF-Reports defined in Maximo-Backend can be displayed and printed in insight-mobile. This works for mobile devices and Electron-client only but not for Browser!

Preconditions:

  • oslc must be configured
  • The PDF-reports must be accessible via oslc with the following pattern {{ _.oslc }}/os/<objectstructure?action=genreport&reportname=<reportname>&reportformat=pdf&oslc.where=wonum=<wonum>

    see also [https://www.ibm.com/support/pages/invoke-maximo-reports-using-rest-api]

    for example: {{ _.oslc }}/os/mxwo?action=genreport&reportname=wotrack.rptdesign&reportformat=pdf&oslc.where=wonum="1022" {{ _.oslc }}/os/mxapiwodetail?action=genreport&reportname=woprint.rptdesign&reportformat=pdf&oslc.where=wonum=${WONUM}"

Than the follow menu-action can be configured:

{
    "label": "Display Report",
    "icon": "icon-eye",
    "action": "fileDownload",
    "actionValues": [
        {
            "url": "insight/os/mxapiwodetail?action=genreport&reportname=woprint.rptdesign&reportformat=pdf&oslc.where=wonum=${WONUM}",
            "filename": "report-${WONUM}.pdf"
        }
    ],
    "then": {
        "action": "fileView",
        "actionValues": [
            {
                "filename": "report-${WONUM}.pdf"
            }
        ]
    }
}