![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
The name of the table (including its parameters, if any) that contains the text to appear and edited. This could be a predefined text table or another table that contains the same field names and syntaxes as @TEXT. The name of the screen to appear. This screen must be defined with the following features:
• One screen table must be defined to meet the requirements of the screentablename argument given below.
• There must be a table instance of PFKEYS(screen). It can be copied from PFKEYS(@GEN_TED) and occurrences can be added and deleted as required. The name of the screen table that is manipulated by the text editor. It must contain the fields listed below. If an application does not specifically require some of the fields, they can be defined as SHOW = N, PROT = Y or be given a value of ROW = 0, COL = 0. This removes them from the physical screen. Even though the fields do not appear, other fields cannot be defined to the same position.
This field is used to accept the line command I, if required. You use this line command to insert data at the top of the text. It should be positioned directly above the field CMD. It must be TYP = S, SYN = C, LEN = 1. If you use the FILL = _ (underscore), this field looks like the other line command field, CMD.The scrollable part of the screen table must also contain a line with these fields: This is used for line commands. It must be TYP = S, SYN = V, LEN = 1. Set PROT = Y to prevent users from typing in this field before the line is available for text input. GEN_TED unprotects this field as needed. This field holds the line of text. It must be TYP = S, SYN = V. Set PROT = Y to prevent users from typing in this field before the line is available for text input. GEN_TED unprotects this field as needed. This holds the number for each line. It can be defined as SHOW = N, PROT = Y. This removes it from the physical screen. Even though the field does not appear, another field cannot be defined to the same position. It must be TYP = C, SYN = B, LEN = 4.A text table can be parameterized and it must contain these two fields:
A primary key field with a length of 4, a syntax of B, and a semantic type of I.
• The exception handler TED_ERROR must be provided. In the case of error, GEN_TED raises the TED_ERROR exception and stores the message in the MSG variable.
• The occurrence SAVE in the table PFKEYS(screen) must call a rule that ends by calling GEN_EDSAVER. GEN_EDSAVER saves the information entered to the text screen table.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |