MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Reference Library > Distribution > Expert Configurator > Key Concepts and Procedures > Exhibit B: Expert Configurator Multi-Level Example > Validating Configured Screens

Validating Configured Screens

 

After items are selected on the option select screen, they may be validated through the use of screen validation rules.  Based on our product description, there are 24 invalid combinations--those that include the color natural light with the luxury version or the color cedar with the standard version.  The Expert Configurator allows us to define rules to exclude these combinations. 

To validate that cedar is only available in the luxury model of the desk, we create a rule written:

((O-LUXURY,EQ,"N"),&,(O-COLOR,EQ,"CEDAR"))

Translated, this rule means if the luxury desk option (O-LUXURY) is (EQ) not ("N") chosen on the sales order option select screen, and the color (O-COLOR) chosen is (EQ) cedar ("CEDAR"), then display an error message.  See below for a sample of this validation rule.

 

WILLIAMS   PLT BEL           EXPERT CONFIGURATOR                       3/03/92

 DSP01                   SALES ORDER RULE MAINTENANCE                    DETAIL

                               SCREEN VALIDATION                               

Rule Number     00135 01 Part Number      DESK-100        Action Code SV Vers 01

 Condition                                                                     

((O-LUXURY,EQ,"N"),&,(O-COLOR,EQ,"CEDAR"))                                     

                                                                               

                                                                               

                                                                               

 ERROR MESSAGE                                                                 

CEDAR IS ONLY AVAILABLE IN THE LUXURY MODEL                                    

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                                

                                                                               

                                                                               

                                                                               

                                                                               

 F2=Command          F3=Exit             F7=Header           F9=Inquiry        

 F10=Function Select F15=Rekey Data                                            

                                                                               

    The Sales Order Rule Maintenance Screen Validation Detail Screen.

 

To validate that natural light is only available in the standard model, we create a rule written:

((O-LUXURY,EQ,"Y"),&,(O-COLOR,EQ,"NATURAL LIGHT"))

Translated, this rule means if the luxury desk option is chosen and NATURAL LIGHT is entered in the color field, display an error message.  We use the luxury option again here since we did not define an option for the standard model. 

See Rule Syntax and Screen Validation Rules in this section for more information.