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 ...
    • Feature - Receivings Processing Mass Receiving Changes

      Release date: 11/18/2017 The following changes were made to PO ---> Processing --> Receivings processing ---> Mass receiving 1) Vessel Number is now the second field on the Mass PO Receiving screen. This will allow the receipt date to be populated ...
    • 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 ...
    • Feature - Extra Item Data Last Access Update

      Release date: 8/10/2021 Version: 8.5 & Up The purpose of these changes is related to the update of the following two fields in the Item Master file: ITEM-DATE-LAST-ACCESS and ITEM-USER-LAST-ACCESS. These two fields are updated when a user adds or ...
    • FF API: File Functions

      Date Revised: 9/12/23 FF: File Function This API has several options that help perform operations for file names; in particular, on long file names (length greater than 100 characters and/or containing one of more embedded SPACEs). Notes: This API ...