User Level
Business Administrator
User LevelBusiness Administrator SyntaxAdd FilterTo define a new filter from within MQL, use the Add Filter command. Syntax
When assigning a name to the filter, you cannot have the same name for two filters. If you use the name again, an error message will result. However, several different users could use the same name for different filters. (Remember that filters are local to the context of individual users.) After assigning a filter name, the next step is to specify the
conditions (
Appliesto ClauseThis clause indicates that the filter applies to business objects or relationships. Direction Clause This clause indicates the direction of the relationships to which
the filter applies:
Type ClauseThis clause assigns a filter for a particular type of business object or relationship.
The Type clause can include more than one type using multiple values to define the pattern. The Type clause can also use wildcard characters. For example, the following definition displays a filter to display all customers and other users:
When listing multiple values as part of a pattern, separate each
value with a comma and no spaces, or enclose any multi-word type value within
quotation marks (for example,
Name ClauseThis clause assigns the names of objects to include in the filter.
The Name clause can include more than one name using multiple values to define the pattern. The Name clause can also use wildcard characters. For example, the following definition adds a filter to display all business objects with names that start with “Inter”, or include the letters “IBM”, or include the words “International Business Machines”:
When listing multiple values as part of a pattern, separate each
value with a comma and no spaces, or enclose any multi-word type value within
quotation marks (for example,
Minorrevision ClauseThis clause assigns a filter for a particular revision of business objects.
The Minorrevision clause can include more than one revision value and wildcards as in the other clauses that use patterns. Typically, you might use a wildcard, but would not include more than one or two revisions. Filtering by the latest revision number or all revisions A and B can remove much of the out-dated business objects from view. This allows you to work with only the most current objects. The Minorrevision clause can also use wildcard characters. For example, the following definition displays a filter to display all parts of revision 1 or 2:
When listing multiple values as part of a pattern, separate each
value with a comma and no spaces, or enclose any multi-word type value within
quotation marks (for example,
Vault ClauseThis clause assigns a filter for business objects that are in a particular or similar vault:
The Vault clause can use wildcard characters. For example, the following definition displays a filter for all business objects that reside in the “Vehicle Project” vault:
Copy FilterYou can modify any filter that you own, and copy any filter to your own workspace that exists in any user definition to which you belong or that is defined as visible to you. As an alternative to copying definitions, you can use the set workspace command to make your workspace look like that of another user. Business Administrators can change their workspace to that of another user to work with filters that they do not own. After a filter is defined, you can clone the definition with the Copy Filter command. Cloning a filter definition requires Business Administrator privileges, except that you can copy a filter definition to your own context from a group, role or association in which you are defined. This command lets you duplicate filter definitions with the option to change the value of clause arguments:
The order of the
Modify FilterUse the Modify Filter command to add or remove defining clauses and change the value of clause arguments.
These clauses are essentially the same ones that are used to define an initial filter except that Add property and Remove property clauses are substituted for the Property clause. When making modifications, you simply substitute new values for the old. Although the Modify filter command allows you to use any combination of criteria, no other modifications can be made except the ones listed. To change the filter name or remove the filter entirely, you must use the Delete filter command and/or create a new filter. Delete FilterIf a filter is no longer needed, you can delete it using the Delete filter command.
This command searches the local list of existing filters. If the name is found, that filter is deleted. If the name is not found, an error message results. For example, assume you have a filter named “Overdue Invoices” that you no longer need. To delete this filter from your area, you would enter the following MQL command:
After this command is processed, the filter is deleted and you receive the MQL prompt for the next command. When a filter is deleted, there is no effect on the business objects or on queries. Filters are local only to the user’s context and are not visible to other users. |