Skip to content

IN and DF API Change (V9.0)

IN: Input and DF: Display Field 


Quantity, Price and Cost Support


The IN and DF API calls have been enhanced to allow the programmer to specify input as a quantity, price or cost field.

Screen Parameters: IN,rr,cc,ww,tp,af


ww = the maximum width of the field. The number of decimals will be determined by the type. The number of digits to the left of the decimal will be calculated as:

type T – maximum width minus the value in Company-No-of-Decimals

type M – maximum width minus the value in Company-No-of-Decimals-Accum

type C – maximum width minus the value in Company-No-of-Decimals-Cost

type $ - maximum width minus the value in Company-No-of-Decimals-Price

t = T indicates this input field is a quantity field. The number of decimal places is for the entry is determined based on the COMPANY-NO-OF-DECIMALS in the Company file. When t = T, p can have the following value:

p = “-“ means the field supports the entry of a negative quantity with no echo

p = “=“ means the field supports the entry of a negative quantity with echo

p = “E“ means the field does not support the entry of a negative quantity but it does support echo

t = M indicates this input field is an accumulator field. The number of decimal places is for the entry is determined based on the COMPANY-NO-OF-DECIMALS-ACCUM in the Company file. When t = M, p can have the following value:

p = “-“ means the field supports the entry of a negative quantity with no echo

p = “=“ means the field supports the entry of a negative quantity with echo

p = “E“ means the field does not support the entry of a negative quantity but it does support echo

t = C indicates this input field is a cost field. The number of decimal places is determined based on the COMPANY-NO-OF-DECIMALS-COST in the Company file. When t = C, p can have the following value:

p = “-“ means the field supports the entry of a negative cost with no echo

p = “=“ means the field supports the entry of a negative cost with echo

p = “E“ means the field does not support the entry of a negative cost but it does support echo

t = $ indicates this input field is a price field. The number of decimal places is determined based on the COMPANY-NO-OF-DECIMALS-PRICE in the Company file. When t = $, p can have the following value:

p = “-“ means the field supports the entry of a negative price with no echo

p = “=“ means the field supports the entry of a negative price with echo

p = “E“ means the field does not support the entry of a negative price but it does support echo


Examples:

IN,04,04,13,C-,A1 will allow the user to enter a cost field with no echo of the value in SCREEN-NUMERIC-FIELD. If COMPANY-NO-OF-DECIMALS-COST is set to 4 (default), user will be able to enter a field containing 9,999,999.9999- (S9(7)V9(4)).

CLS

Feedback and Knowledge Base