Skip to content

Push data

Insight Mobile provides in its forms fields and functions so that the user can create or change data in the backend.

Default push

By default data is pushed via REST interface, which transfers data changes for each node directly to the backend specific business layer. Additionally attributes can be automatically assigned (see chapter Assignment) before the data is pushed.

If you like to integrate more complex data processing you can use

  • saveAction

  • OS-REST-API (Backend Maximo)

SaveAction

Invokes a method via URL while saving the current node.

    "saveAction": {
      "method": "POST",
      "url": "rest/mbo/WORKORDER/${WORKORDERID}",
      "params": {
        "WOPRIORITY": "1",
        "DESCRIPTION": "${DESCRIPTION} + ${userData.personid} + ${appParams.standort}"
      },
      "headers": {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    }

"afterSave" After saving, actions can be performed. The same actions are available as with Menu.

    "saveAction": {
      "afterSave": {
        "action": "request",
        "request": {
          "url": "https://your-api.com/request",
          "method": "POST",
          "headers": {
            "Content-Type": "application/x-www-form-urlencoded"
          },
          "params": {
            "desc": "${DESCRIPTION}"
          }
        }
      }
    }

OS-REST-API (Backend Maximo)

To use an object structure, just add the property "os":"OBJECTSTRUCTURE" to the ClientProperties of the node to be stored.

Precaution:

  • Backend Maximo

  • Object Structures must be of type integration

  • Node type matches root mbo in registered Object Structure

  • All mandatory fields regarding the Object Structure must be filled by user or automatic attribute assignment before record is stored

    {
      "name": "MATUSETRANS",
      "type": "MATUSETRANS",
      "title": "Materialverbrauch",
      "query": {
        "relation": "MATUSETRANS"
      },
      "label": "${WONUM} - ${DESCRIPTION}",
      "icon": "icon-cog",
      "clientProperties": {
        "OS": "MXINVISSUE"
      },
      "attributes": [
        {
          "name": "WONUM",
          "label": "Arbeitsauftrag",
          "type": "String",
          "readonly": true
        }
      ]
    }