Functional Description
Purpose
The purpose of this function is to edit a scale field and determine if it is in the Scale Master
Table (F05103). If the scale is in the table, return the description. If the scale is not in the table,
set an error.
This function will most likely be used as an edit rule attached to a data dictionary item. It can
also be called from forms to validate a scale field if the edit rule is not set up at the data
dictionary level.
When using this function, the value of the scale is passed in both the Scale field and the Behavior
Edit String field. The description is returned through the description field.
Setup Notes and Prerequisites
Special Logic
Technical Specification
Allow Blank Scales - if the scale is blank, return success
If the scale is not blank, do the following:
If the fetch is successful, pass the scale description back through the description parameter
D0500425 - Is Item In Scale Master
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
idBHVR_ERROR_ID | BHVRERRID | ID | OPT | NONE |
A long integer representing an error that has occurred in a behavior. | ||||
szBEHAVIOR_EDIT_STRING | BHVREDTST | char | OPT | NONE |
The input string for this parameter should be the same as the Scale parameter. The function allows blank scales, so if
| ||||
szDescription001 | DL01 | char | OPT | NONE |
This is the scale description returned if the function finds a record in the F05103 - Scale Master
| ||||
szScale | SCLE | char | OPT | NONE |
The input string for this parameter should be the same as the Behavior Edit String parameter. The function allows
|
None |
F05103 Scale Master |