A list has the indexes CUSTOMERNO, ORDERNO, CUSTOMERNAME, and ARTICLE. A query mask is to be defined that forces users to enter either a customer number (CUSTOMERNO) or an order number (ORDERNO).
To achieve this requires a query mask with two subgroups: In one subgroup CUSTOMERNO is a required field, and in the other subgroup ORDERNO is a required field.
Recommendation: The query mask should be designed to make it clear to the user that there are two alternative ways of entering values for a query (the user is allowed to enter values in one subgroup only). This can be achieved by grouping the fields in a certain manner and possibly by duplicating some fields. Several approaches are possible.
The query mask could, for example, look like this:
PE97IX05 --------------------------------------------------------------------- Command ===> ________________________________________________ Scroll ===> PAGE Select List Index Entries Form: REJ Extension: INVENTORY Report: Customer number ===> ............ ONL ------- or Order number... ===> ............ ONL ----- Additional values (optional) Customer name.. ===> ________________________ ONL Article........ ===> ________________________ ONL Items with Hits: 0 Lines with Hits: 0 Retrieve Immediately ===> YES (Y)es,(N)o Enter a value or a mask and press ENTER to generate the list index entries. Enter V to display, P to print, or press END to return to the previous panel. |
To achieve this, the following elements for the query mask need to be defined (the position of each element in the query mask can be controlled by specifying an appropriate value in the Number field):
The query mask could also duplicate the optional fields to make it clearer that there are two alternative input groups:
PE97IX05 --------------------------------------------------------------------- Command ===> ________________________________________________ Scroll ===> PAGE Select List Index Entries Form: REJ Extension: INVENTORY Report: Customer number ===> ............ ONL Customer name.. ===> ________________________ ONL Article........ ===> ________________________ ONL or Order number... ===> ............ ONL Customer name.. ===> ________________________ ONL Article........ ===> ________________________ ONL Items with Hits: 0 Lines with Hits: 0 Retrieve Immediately ===> YES (Y)es,(N)o Enter a value or a mask and press ENTER to generate the list index entries. Enter V to display, P to print, or press END to return to the previous panel. |
To achieve this, the following elements for the query mask need to be defined (the position of each element in the query mask can be controlled by specifying an appropriate value in the Number field):
The query mask could also duplicate all fields to make it clearer that there are two alternative input groups, including the required field of one group as optional field in the other group.
PE97IX05 --------------------------------------------------------------------- Command ===> ________________________________________________ Scroll ===> PAGE Select List Index Entries Form: REJ Extension: INVENTORY Report: Customer number ===> ............ ONL Order number... ===> ____________ ONL Customer name.. ===> ________________________ ONL Article........ ===> ________________________ ONL or Order number... ===> ............ ONL Customer number ===> ____________ ONL Customer name.. ===> ________________________ ONL Article........ ===> ________________________ ONL Items with Hits: 0 Lines with Hits: 0 Retrieve Immediately ===> YES (Y)es,(N)o Enter a value or a mask and press ENTER to generate the list index entries. Enter V to display, P to print, or press END to return to the previous panel. |
To achieve this, the following elements for the query mask need to be defined (the position of each element in the query mask can be controlled by specifying an appropriate value in the Number field):