MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Reference Library > Distribution > Expert Configurator > Key Concepts and Procedures > Expert Configurator Rules > Screen Validation Rule

Screen Validation Rule

 

The option values entered at the time of the sales order entry on the option select screen are validated by screen validation rules.  Validation can be for a specific option or a combination of options.  When a validation condition is met, a user-defined error message is displayed at the bottom of the option select screen.  It is important to note that when a condition is met, the error message is displayed.  The condition is used to identify INVALID entries.

Within the releasing path of a screen validation rule, a screen generation rule must exist.  The error message will be displayed on the most recently processed screen in the path.

Identification

System Identifier:          09

Valid Rule Categories:   Sales Order Entry

Action Expression 1

Description                   Error message to be displayed on the user-defined option selection screen when a screen validation condition is met.

Expression Type:          Non-syntax (text)

Length:                         55

Interpreted type:            Not interpreted

Note:                            The message will appear on the option select screen preceded by the rule number.

Action Expression 2 is not used.  The only expression processed for a screen validation rule is the error message.

Add a Screen Validation Rule

1.   Display the Sales Order Rules Maintenance Function Select screen.

a.   Select the Expert Configurator option from the System Application Menu.

b.   Select the Sales Order Rule Maintenance option from the Expert Configurator Application Menu to display the select screen.

2.   Enter the Function Select information.

a.   Assign a unique number to the rule.

b.   Enter the action code for a screen validation rule in the Action Code field.  Action codes are defined in category Y03 on the Reference File.

c.   Enter a 1 addition in the Maintenance Code field.

d.   Press the Enter key to display the header screen.

3.   Enter the header information.  See the Standard Rules Detail screen (EC100S03) in the Screens section of this manual for more information.

4.   Press the Enter key to display the detail screen.

5.   Enter the detail information.

a.   Enter the condition statement.  (Optional)

The condition determines if the rule result is true or false.  If the condition expression is interpreted as true, the action expressions are processed.  Rules are released based on the result of the condition.  If no condition is entered, the condition is interpreted as true.  The condition statement entered here would be an option or combination of options that can not exist.  For example, a cedar color desk can only be ordered with the luxury model.  To ensure the sales order entry clerk does not enter an order for a cedar color desk, standard model, a validation rule is needed.  The condition statement in this validation rule could be:  ((O-COLOR,EQ,"CEDAR"),&,(O-LUXURY,EQ,"N")), which means if the color option equals CEDAR and the luxury option equals N (no), then display the error message.

b.   Enter the error message to be displayed.  (Required)

This message is displayed if the above condition is met. This message is not interpreted by the Expert Configurator.  A user-defined error message up to 55 characters may be entered.  This is exactly how the message will be displayed on the user-defined option select screen if the condition is met.

If you are working in a multi-language environment, you may also enter a seven character MAC-PAC error code.  When this error is generated, the system will retrieve and display the appropriate error message along with this code.

6.   Press the Enter key to add this screen validation rule to the Rule Master File.

Change a Screen Validation Rule

1.   Select the Sales Order Rule Maintenance option from the Expert Configurator Application Menu to display the select screen.

2.   On the Sales Order Rule Maintenance Function Select screen:

a.   Enter the screen validation rule number in the Rule Number field.

b.   Enter a 2 in the Maintenance Code field to change the header information for the rule.  Enter a 3 to change the detail information for the rule.

3.   Change the descriptive data for the rule and press the Enter key.

4.   If all fields are valid, the rule is changed on the Rule Master File.

Reactivate or Deactivate a Screen Validation Rule

1.   Select the Sales Order Rule Maintenance option from the Expert Configurator Application Menu to display the select screen.

2.   On the Sales Order Rule Maintenance Function Select Screen:

a.   Enter the screen validation rule number in the Rule Number field.  All rules released by this rule must be deactivated before this rule can be deactivated.

b.   Enter a 4 in the Maintenance Code field to deactivate the rule.  Enter a 5 in the Maintenance Code field to reactivate the rule.

3.   Press the Enter key to deactivate or reactivate the screen validation rule.

4.   Press F3 to exit without deactivating or reactivating the rule.