IBM Support

Set Up Required Fields Using Attribute Restriction

Question & Answer


Question

Is it possible to enforce required fields conditionally using Data Restrictions in the Security Group application?

Answer

Steps to set up a data restriction to prompt the user to enter information for the required fields.

1. Login as maxadmin
2. Go to the Administration module, create a conditional expression in the Conditional Expression Manager:
CONDITION WOACCEPTSCHA
Expression :woacceptscharges=1

note: workorder.woacceptscharges is a YORN field
IBM Logo

3. Go to maxadmin security group in the Security Groups application:
Data Restrictions tab
Attribute Restrictions sub-tab
Set certain fields to be required with condition where if priority = 1 then the field is required

4. Save

5. Log in as maxadmin, create a new work order, check the "Accept Charges?" check-box:



The system puts asterisks next to the required fields specified in the attribute restriction for the security group.

6. Try to save without populating all the required fields and an error message will be displayed....
"Requiredfield xxx is blank" (this way the user must enter all required fields).

e.g. If classstructureid is a required field and the user tries to save without entering a value for this field.
A message displays: "BMXAA4195E - Required field Class Structure is blank".

IBM Logo

[{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Security Groups","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.1;7.1.1;7.5","Edition":"Edition Independent","Line of Business":{"code":"LOB02","label":"AI Applications"}},{"Product":{"code":"SSWK4A","label":"Maximo Asset Management Essentials"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":null,"Platform":[{"code":"","label":"All"}],"Version":"","Edition":"","Line of Business":{"code":"LOB02","label":"AI Applications"}}]

Document Information

Modified date:
17 June 2018

UID

swg21382456