IN and DF API Change (V9.0)

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


    • Related Articles

    • FN API

      FN: Format Number (New) This API call will allow the programmer to pass a numeric value in SCREEN-NUMERIC-FIELD. This field will be formatted based on type and maximum size provided, and the results will be passed back as follows: · ...
    • Programming API Codes

      This document is provided for Elliott software developers. If you are not an Elliott software developer, this document is not meaningful for you. AP: Get SMA Values This API returns various values from the Shared Memory Area. For example: Move ‘AP’ ...
    • Report Desk: Optional File Input Parameter

      Release Date: TBA Elliott v8.6 This article describes how to allow the user to specify an input file of values instead of entering a comma-separated list of values for an input parameter with an "IN" or "NOT IN" Operator. Begin by setting the ...
    • DM API Changes - Use DM,99 to Display Long Messages

      Release Date: 02/05/2024 Version: 8.2 & Up The DM API call is limited to display a message up to 80 digits. For example, you can use the following message to display a message up to 80 digits: MOVE SHORT-MESSAGE TO SCREEN-LITERAL MOVE "DM" TO ...
    • LF API

      Release Date: 9/7/2021 Versions: 8.0 and higher This API takes a filespec, like C:\WINDOWS\*.*, and returns the next file in the specified directory for each successive call. Screen Parameters Comment LF,nn Input: SCREEN-LITERAL contains the ...