IBM Support

How to display the Attachments control in a different color when a document is linked

Question & Answer


Question

How to display the Attachments control in a different color when a document is linked in an application like Incidents.

Answer

This requirement can be achieved through the Conditional UI setting.

1. Go to the Conditional Expression Manager application.
Create a condition in the Conditional Expression Manager.


This condition will check if there is any document associated with an INCIDENT record.

2. Go to the Application Designer application.
1) Open the INCIDENT record
2) Select Action - Add/Modify Signature Options
Add a sigoption which will be used in the conditional UI setting for the Attachments control.
For example, Optionname : COLORFORDOC



3) Then go to the Incident Tab
- Select the Attachments control
- Click Control Properties. You then can see the 'Attachments Properties' dialog like below.



- Set the 'Signature Option' with COLORFORDOC which was created in Step 2.
- Set 'Sig Option Data Source ID' with MAINRECORD like below.



- Then click on 'Configure Conditional Properties' and set like below.



For users belonging to the EVERYONE Security Group, the 'Attachments' label color will be changed when condition '1015' is satisfied.
It means that 'Attachments' label color will be changed when there is any document linked in an Incident record.

NB: rowcolor_calcpriority_2 is definied in maximo.css file. You can use your own value.

3. Go to the Security Group application
- Search for the EVERYONE group
- Grant access to COLORFORDOC for the Incidents application.


4. Log out and Log In again.

5. Go to the Incidents application.
- Open an Incident record
- If there is no document linked, the Attachments label color is shown as normal.


- If there is any document linked, Attachments label color is then shown in red.


So you can recognize if there is any document linked without having to click on the Attachments control.

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

Document Information

More support for:
IBM Maximo Asset Management

Software version:
7.1, 7.5

Document number:
242201

Modified date:
17 June 2018

UID

swg21667665

Manage My Notification Subscriptions