About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
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"}}]
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21667665
Manage My Notification Subscriptions