Syntax
When you enter this command, MQL displays the business objects (if any) that make up the set. For example, to see the definition for the set named “Seat Components,” you would enter:
Depending on your system setup, names might be case sensitive. If the set name is not found, an error message will result. If that occurs, use the List Set command to check for the presence and spelling of the set name. Select ClauseThis clause enables you to obtain more information than just the type, name or revision of the object. The Select clause has two forms: Select and Selected. To first examine the general list of field names, use this command:
The selectables for sets are the same as for business objects. For more information, see Select Clause. The Selectable clause is similar to using the ellipsis button in the graphical applications—it provides a list from which to choose. Select FromThe following form of the Select clause enables you to list all the field names whose values you want to print.
When this clause is included in the Print Set command, the values of these fields are printed for each business object contained within the set. For example, assume you have four objects within a set named Components. You can see the names and descriptions of each object with the following command:
PaginationWhether a set is sorted or not, it can always be paged through. In MQL, you can print a subset of a set using: print set SET_NAME [start START_RANGE] [end END_RANGE];
To scroll through an entire set, you would use commands that resemble: print set SET_NAME start 0 end 100; print set SET_NAME start 100 end 200; print set SET_NAME start 200 end 300; Methods for performing these operations are also available in the Studio Customization Toolkit (Set.subset, Set.subsetSelect). For more information, see the Studio Customization Toolkit Reference Guide (JavaDocs). Expressions on SetsYou can evaluate expressions against a set of business objects as described in Formulating Expressions for Collections. |