| # Program Scripts/Libraries (ttadv2130s000) Use this session to create and maintain program scripts by package VRC. A program script is used to program actions to be done in addition to the standard program. A program script can be linked to a session. Related topics Program Scripts Overview Package The program script or library's package code. Note Each program script or library belongs to a module in a specific package. VRC The version code of the package for which the program script or library is defined. VRC The release code of the package for which the program scrip or library is defined. VRC The customer extension of the package for which the program script or library is defined. Note This is only necessary for customized software. Module The code of the module to which the program script or library belongs. Program Script The code of the program script or library. A script or library is uniquely identified by the combination of package code, module code, and script or library code. Example
Package Code: | ti | LN Manufacturing
Module Code : | pcf | Product Configuration
Script Code : | 0110 | Maintain Features
The total identification of the program script or library is: tipcf0110 Script Type The following script types are used: UI Script with Database handling A 4GL user interface script is used for display and maintain sessions. The script is called by the 4GL engine (standard program) on certain events. UI Script for Print/Processing Session A 4GL user interface script is used for print and processing sessions. The script is called by the 4GL engine (standard program)on certain events. 3GL (Without 4GL Engine) A 3GL script has no interaction with the 4GL engine (standard program). That means that all logic of the program must be included in this script. The well-known General Table (ttaad4100/ttaad4500) sessions are examples of 3GL scripts. General Library General DLL - Dynamic Link Library Integration DLL Dynamic Link Library that integrates between packages. DAL Data Access Layer that contains the Business Logic related to a table. The DAL is called by the 4GL engine on certain events. Since version 2 of DAL is available, Infor advises you to use DAL (version 2) scripts. DAL (version 2) Data Access Layer that contains the Business Logic related to a table. The DAL is called by the 4GL engine on certain events. DAL (version 2) is more integrated with the Business Object Layer and Open Architecture. Business Object Layer This type of script is a DLL generated by the Business Object Layer and contains logic used by a Business Object. A Business Object in turn calls DALs for the related tables. Compile Flags The compile flag. In (3GL and 4GL) sources you can use compile flags to compile a part of the source depending on certain conditions. This is called conditional compiling and is described in To use the preprocessor. Example
     | Compile Flag: -DMYTEST | Source ... #if MYTEST message(Some debug information) #endif ...
You can specify several compile flags separated by a space " ". For example:
    Compile Flags: -DMYTEST -DVERSION_1 -DVERSION3.0
Note The preprocessor only works during compilation of a 3GL source because the standard generator std_gen6.2 does not have a preprocessor pass. So, you cannot use 4GL events in a #if, #ifdef or #ifndef. Product ID Object The product Id for which a license is needed to run the object. If the field is empty, no license is needed to run the object. Product ID Source The product Id for which a license is needed to compile the object. If the field is empty, no license is needed to compile the object. Tools Interface Version The Tools Interface Version (TIV) number of the script/library. The TIV number is used to guarantee backward compatibility and is related to a particular version of the porting set, the Infor Enterprise Server and the 4GL Tools. For example, the TIV number for Infor Enterprise Server 7, delivered together with LN 6.1 FP1, is 1010. When you insert a new script, the TIV is automatically set to the highest supported TIV number. By setting a TIV number for each object, the behavior of these objects can be different for incompatible features executed with different versions of the porting set or the LN Enterprise Engine. For example: the "set.synchronized.dialog" function was changed in TIV 1000. Therefore objects, in which this function is used, show different behavior for different TIVs: If the object's TIV is less than 1000, a synchronized dialog is started when a record is inserted or duplicated in an editable grid. If the object's TIV is 1000, no synchronized dialog is started when a record is inserted or duplicated: the new record is entered directly in the grid. For details about the TIV, refer to the ERP Enterprise (LN) Programmer's Guide. Expired If this check box is selected, the program script or library is expired for this package VRC and package VRCs derived from this one. User The user who created the program script. Date The date on which the program script is created. User The user who last updated the program script. Note An update of the program script is only detected if user option 2 is called and the script was really changed during editing. Date The date on which the program script is last updated. Tech.Document. If this check box is selected, a technical document is available for the script. Release Notes If this check box is selected, release notes are available for this script. Search Key 1 The first search key. Search Key 2 The second search key. Search Key 3 The third search key. |