Defining search templates
The attributes of the registered
master data document, for which to define a search template, must already be selected
and specified with names, descriptions, and data types.
- Select Document > BOD.
-
Click the Search Templates link of the corresponding
record.
Note: Search template is applicable only to registered Infor and custom master data BODs, and to custom master data documents and DSVs.
- Click Add.
- Specify this information:
- Name
-
Specify a unique name that identifies the search template. Valid characters are a-z, A-Z, and 0-9. The first character should be a lowercase letter. The maximum length is 25 characters.
- Search Result
- Select the attribute or attributes that will be
searched.
- Select an attribute from the 'Attribute' list box. The list contains mapped attributes of the master data business document.
- Click the right arrow to move the selection to the 'Search Result' list box.
- Filters
-
Create filter templates to be used in retrieving the master data search result.
- Select an attribute from the 'Attribute' list box that will be used as a search parameter.
- Click the right arrow to move the selection to the 'Filters' list box.
- Parameters (first column) - select the attribute of a master data that will be compared against the search parameter (third column).
- Relation Operator - select the relational operator to be used.
- Parameters (third column) - refers to the search parameter that will be compared against the attribute of a master data. The value source for this parameter will be defined in the Expressions setup.
- Logical Operator - select AND or OR to combine comparison conditions.
Note: Click the Add (+) icon to duplicate a filter template.
-
Click Save.
This is a sample definition of a search template for the CurrencyExchangeRateMaster BOD registration that will return the currency exchange rate between two currency codes during a specific date and time.
- Name
- Specify "getCurrencyRate".Note: For readability purpose, the recommended format in naming a search template is the word "get", followed by the name of attribute that will be searched.
- Search Result
-
- Select rateNumeric from the 'Attribute' list box, if this is the name for the attribute "CurrencyExchangeRate/RateNumeric".
- Click the right arrow to move the rateNumeric attribute to the 'Search Result' list box.
- Filters
-
- Select sourceCur from the 'Attribute' list box, if this is the name for the attribute "CurrencyExchangeRate/SourceCurrencyCode".
- Click the right arrow to move the sourceCur
attribute to the 'Filters' list box.
- In the Parameters field (first column), select sourceCur, if this is the name for the attribute. "CurrencyExchangeRate/SourceCurrencyCode".
- In the Relational Operator field, select ==.
- In the Parameters field (third column), "p_sourceCur" displays.
- In the Logical Operator field, select AND.
- Select targetCur from the 'Attribute' list box, if this is the name for the attribute. "CurrencyExchangeRate/TargetCurrencyCode".
- Click the right arrow to move the targetCur
attribute to the 'Filters' list box.
- In the Parameters field (first column), select targetCur, if this is the name for the attribute "CurrencyExchangeRate/TargetCurrencyCode".
- In the Relational Operator field, select ==.
- In the Parameters field (third column), "p_targetCur" displays.
- In the Logical Operator field, select AND.
- Select startDate from the 'Attribute' list box, if this is the name for the attribute "CurrencyExchangeRate/EffectiveTimePeriod/StartDateTime".
- Click the right arrow to move the startDate
attribute to the 'Filters' list box.
- In the Parameters field (first column), select startDate, if this is the name for the attribute "CurrencyExchangeRate/EffectiveTimePeriod/StartDateTime".
- In the Relational Operator field, select <=.
- In the Parameters field (third column), "p_startDate" displays.
- In the Logical Operator field, select AND
- Click the Add (+) icon to duplicate the
filter template for startDate.
- In the Parameters field (first column), select endDate, if this is the name for the attribute "CurrencyExchangeRate/EffectiveTimePeriod/EndDateTime".
- In the Relational Operator field, select >=.
- In the Parameters field (third column), "p_startDate" displays.
- Click Save.