Notes for parameter validation
- If you are using parameter types
2=AND true/falseor11=OR true/false, use Data Type3=Longand use Set Indicator1=MinMaxwith a range of0 (false)to1 (true). Do not use11=Booleanfor Data Type.If the Data Type is
StringorDate, ensure that the Parameter Type isCharacter Info. - If the Data Type is
7=Date, leave the Format Code field blank. The date is stored in the database with the format of the server’s regional settings. What happens when a user with different regional settings requests this data from the server? Optiva translates the date value from the server’s regional settings to the client’s regional settings. - Specify a format for numeric parameters in the
Format Code field. Use zero
(0) to force a zero to display if there is no number for that place, a period
(.) for the decimal, and pound (#) to indicate the format of the numbers. For
example:
0#.##applied to the number 5.837 results in 05.84. When the Parameter Type isCharacter Info, ensure that this field is blank. -
If you are using specifications or formulas, use Set Indicator
1 = MinMax.This validates the Min and Max values against the Formula-Value or Specification-Target for the parameter. Validation will display when Saved or Calculated.
-
Set Indicator
0 = Anyallows users to enter any valid values. -
Set Indicator
2 = Enum, enables users to select from the drop-list in the Target column. Min and Max values cannot be specified. - For an enumerated query, select a query from the
FSQUERYtable that begins with"ENUM". For example,ENUMSTATUS. Omit the"ENUM"in the Query field in the Parameter form. For example, to useENUMSTATUS, specify STATUS in the Query field. - For an enumerated list, create a custom list or use an existing one.