IsItemInTheScaleMaster

Is Item In The Scale Master

Minor Business Rule

Object Name: B0500425

Parent DLL: CHRM

Location: Client/Server

Language: C

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:
• 

Fetch from F05103 using the Behavior Edit String as the key
• If the fetch is successful, pass the scale description back through the description parameter
• 
  If the fetch is not successful, set error 124O - Scale Not Found

Data Structure

D0500425 - Is Item In Scale Master

Parameter NameData ItemData TypeReq/OptI/O/Both
idBHVR_ERROR_IDBHVRERRIDIDOPTNONE

A long integer representing an error that has occurred in a behavior.

szBEHAVIOR_EDIT_STRINGBHVREDTSTcharOPTNONE

The input string for this parameter should be the same as the Scale parameter.  The function allows blank scales, so if 
this is blank, an error will NOT be set.

szDescription001DL01charOPTNONE

This is the scale description returned if the function finds a record in the F05103 - Scale Master

szScaleSCLEcharOPTNONE

The input string for this parameter should be the same as the Behavior Edit String parameter.  The function allows 
blank scales, so if this is blank, an error will NOT be set.

Related Functions

None

Related Tables

F05103 Scale Master