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 ...
    • 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 ...
    • 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 ...
    • Elliott API (JSON REST Web Service)

      Introduction In the past, Elliott web services is based on SOAP standard since that is the first web services standard created for the industry. Since then, RESTful APIs (Representational State Transfer) have become the backbone of modern web ...
    • DN API (Document Number Handling)

      Release: 1/11/2021 Version: V8.5 and higher DN API: Document Number Increase, Roll Back or Validate In Elliott V8.5, the system supports alphabetic document numbers. The logic to sequentially assigning the next document number is complicated. For ...