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">
After:
<view id="WorkExecution.WorkDetailView" label="Work Order {0}" resolverClass="application.handlers.WOListHandler" resolverFunction="resolveWonumLabel">
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.
UID
ibm11133247