Scope: managed applications, mobile applications, and ordinary applications.
1. In general, a metadata object has the same selection restrictions throughout the configuration. That's why it is recommended that you set up selection parameters and links in the object's properties, such as document and catalog attributes.
2. Sometimes, a usage scenario might require ad hoc selection restrictions that differ from those set up for the metadata object. In this case, you can adjust the selection parameters for a certain form.
For example, a configuration contains the following objects:
- The Employees catalog with the following attributes: Company and EmployeeKind. EmployeeKind is a enumeration, which can take either the FullTimer or PartTimer value.
- The HiringOrder document with the following attributes: Company and Employee. For the Employee attribute, the Filter.Company selection parameter is linked to the Company attribute.
According to the usage scenario, users have to be able change the value of the SelectOnlyFromFullTimeEmployees functional option to select only full-time employees. To do so:
- In the HiringOrder document form, create an EmployeesKinds attribute.
- For the Employee form field, link the Filter.EmployeeKind selection parameter and the EmployeesKinds form attribute.
- The EmployeesKinds value is populated depending on the functional option value.
Since the HiringOrder document doesn't have the EmployeeKind attribute, you cannot link the Employee attribute with the Filter.EmployeeKind selection parameter directly.
In the HiringOrder document, the Employee attribute, set the link for the Filter.Company parameter. In the HiringOrder document form, set the link for the Filter.EmployeeKind parameter. After this, users will be provided with both selection parameter links. When a user selects an employee in a hiring order, the list of employees is filtered by both the selected company and the employee type determined by the functional option value.