FA API Changes (V9.0)

FA API Changes (V9.0)

FA:  File Access (Without File Handling)

This API can be used to retrieve an individual field from a specific record in a file without specifying the file in the program and without opening and closing the file.  In its simplest form, one can, for example, retrieve a specific customer’s name in a single RD API call.  Using more API options and multiple API calls, one can list all the customer names in the file.  This API is only available for the files that are available using DDF names.

The changes displayed in bold below are changes to the API for V9.0.

Screen Parameters: FA,RD,id,rc Read file and return field value

Input:

Id = package id (optional, SY is default)

rc = Return pointer to record

Passing-Note-File-Name = file, e.g., ARCUSFIL

Passing-Note-File-Ref-Number = primary key, e.g., 000100

Screen-Alpha-Field = DDF field name, e.g., CUS_NAME

Output:

Screen-Alpha-Field = field value if successful and field is not numeric

Screen-Numeric-Field = field value if successful and field is numeric

Screen-Answer = “Y” if successful, “N” if not

If not successful, Screen-Alpha-Field contains the file status code.

Note: If the file is not already opened by a FA,OP call, it will be opened and closed automatically.

Screen Parameters: FA,OP,id,md - Open the file

Input:

Id = package id (optional, SY is default)

md=Mode (optional, Input is default, IO is supported)

Passing-Note-File-Name = file, e.g., ARCUSFIL

Output:

Screen-Answer = “Y” if successful. “N” if not

If not successful, Screen-Alpha-Field contains the file status code. 

Screen Parameters: FA,RW (New) - Rewrite a record

Input:

Passing-Note-File-Name = file, e.g., ARCUSFIL

Screen-Ptr =Address of record to be updated

  Output:

Screen-Answer = “Y” if successful, “N” if not

If not successful, Screen-Alpha-Field contains the file status code.

Note:

An OP with IO for the mode is required before this call can be made. An RD (read), RN (read next) or RP (read previous) is required before this call can be made. 

CLS

   




    • Related Articles

    • DD API Changes (V9.0)

      DD: Drill Down The Drill Down API allows the developer to drill down to another Elliott application. The information provided in SCREEN-PARAMETERS will give the system the correct information to determine if the user has rights to the application ...
    • 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 ...
    • Avalara Source Code Integration - AV API Call

      Release Date: 11/16/21 Revised: 05/23/22 Version: 8.6 and Above This article is intended for Elliott Business Software developers. This API call will allow the programmer to pass a value to indicate which Avalara function is to be performed. The ...
    • VA API Changes (V9.0)

      VA: Verify Access Elliott V9.0 supports a series of 999 security flags to control access by users to specific features in the software. At runtime, the VA,nnn API is sent (where nnn is a number identifying the security flag) and either “Y” or “N” is ...
    • CV API

      Release Date: 10/31/2019 This API allows the programmer to determine whether or not thie current company's .DAT files have been converted to .BTR files. Screen-Parameters: CV Check the converted status for the current company. CV,nn Check the ...