IBM Support

Customizing View Labels With Dynamic Text in Maximo Anywhere

Technical Blog Post


Abstract

Customizing View Labels With Dynamic Text in Maximo Anywhere

Body

Customizing View Labels With Dynamic Text in Maximo Anywhere

 

Maximo Anywhere provides the user with a customizable and versatile development platform. Applications can be customized via the app.xml and javascript handlers to achieve desired functionality. See Configuring Application for step by step instructions of this process.

 

In many scenarios it becomes advantageous to have record information within the header of a view. This information can come from the parent record or can be read-only information you would like from the current context.

 

For example, when on the Work Order Details view it may be desirable to have the work order number in the header of the view so it is easy to find without having to scroll. In order to achieve this the app.xml must be modified for the view WorkExecution.WorkDetailView as follows.

 

Before:

<view id="WorkExecution.WorkDetailView" label="Work Order Details">

image

 

After:

<view id="WorkExecution.WorkDetailView" label="Work Order {0}" resolverClass="application.handlers.WOListHandler" resolverFunction="resolveWonumLabel">

image

 

 

The resolverFunction “resolveWonumLabel” already exists in the product. If the resolverFunction did not exist it would have to be created in the handler referred to by the resolverClass. The handlers are written using javascript.

 

 

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

UID

ibm11133247