IBM Support

How to make Memo field mandatory if the user tries to close an SR which doesn’t have a Work Order created for it.

Troubleshooting


Problem

The objective is to make the Memo field mandatory (if the user tries to close SR which doesn’t have a WO created for it) in Change Status dialog box in Service Request application.

Resolving The Problem

How to make Memo field mandatory if the user tries to close an SR which doesn’t have a Work Order created for it.
The objective is to make the Memo field mandatory (if the user tries to close SR which doesn’t have a WO created for it) in Change Status dialog box in Service Request application.

1. Go To Conditional Expression Manager and Create a condition (KEOSRWOCHECK) with the following expression [:ticketid not in (select relatedreckey from RELATEDRECORD where relatedrecclass='SR')]




2. Apply the condition to SR to the Memo (Change Status dialog box) fields via Application Designer application. Following are the parameters for applying the condition.
 Signature Option: READ
 Security Group: EVERYONE
 Condition: KEOSRWOCHECK (as created above)
 Property (Condition is True): inputmode / required



3. Application Designer (SR app) >Edit Dialogs> change status> Control Properties>Advance Tab

Sig Option Data Source ID: = MAINRECORD


Application Designer (SR app) >Edit Dialogs> change status> Control Properties>General Tab (No changes needed)

Or you can edit the application XML for SR app and add the following:


<section id="changestatus_grid1_1_1_grid4">
<textbox dataattribute="memo" id="changestatus_grid1_1_1_grid4_3a" sigoption="MEMOABOVESTATUS"/>
<combobox dataattribute="status" id="changestatus_grid1_1_1_grid4_1"/>
<textbox dataattribute="asofdate" id="changestatus_grid1_1_1_grid4_2" lookup="datelookup"/>
<textbox dataattribute="memo" id="changestatus_grid1_1_1_grid4_3b" sigoption="READ" sigoptiondatasrc="MAINRECORD"/>
</section>

4. Save your work

5. Now to test. Go To Service Request, create a new SR and Save SR. Select Change Status and notice that Memo field (Change Status dialog box) is mandatory.

[{"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.5;7.6","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 June 2018

UID

swg21990612