MAJTEXTE: Update of the table associated with a text once this is entered

Use this entry point to take control, after the entry of a text, in order to update the table associated with the text. It is in fact necessary to store the number assigned to the created text in order to later retrieve it.

It is called by all the functions using standard text management. 

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

This entry point is called from all the functions using the standard text management in the following way:

·   SAITEX action associated with a button at the bottom of the screen or an option on the menu bar

.   SAITEXLIG or SAITEXLIG2 action associated with a right click button for a table line

.   Call to the TEX subprogram for the TRTX3TEX processing

 Context of use

The sole purpose of this entry point is to update the record to which you want to associate the text that has been entered. This link is created via a field containing the name of the text file.

It is therefore necessary to perform some custom/specific actions beforehand:

.   Addition of a field of TEX type in the table to which the text is to be associated.

.   Addition of this same field in the screen from which the text entry is triggered.

.   Modification of the screen in order to add the SAITEXLIG or SAITEXLIG2 action to a button   

or modification of the function management window to define the SAITEX action to a button or a menu

or call the TEX subprogram from TRTX3TEX .

Example

In order to update the SRHTEX1 field in the SRETURN [SRH] table, it is necessary to write the following sequence:

Case WTYP

When “ SRH1 “:         Trbegin [SRH]

Update [SRH] Where SRHNUM = WCLE1 With SRHTEX1 = WNUMTEX

Endcase

Commit

 

Caution:

If the SAITEX action is used, it is necessary to declare and initialize the WTYP and WCLE1 variables for the AVANTBOUT action.

    

                       

MAJTEXCLOB: Update of the TEXCLOB table

Use this entry point to take over, after the entry of a text, in order to update the TEXCLOB table.

It is called by all the distribution functions using standard text management.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases

This entry point is called from all the distribution functions using the standard text management in the following way:

Call to the subprogram CRE_CLOB and DUP_CLOB of the TRTX3TEX processing

 Context of use

The sole purpose of this entry point is to update the record in the TEXCLOB table to which you want to associate the text that has been entered.