![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
Developer’s workbench Type TED(text_input) <Enter> Type EX TED(text_input) <Enter>
• If you do not supply a value for text_input, executing TED displays a screen prompting for a value.
• After TED is invoked, a table appears for text editing. If a string is supplied, TED displays the table @TEXT(userid,name). If a table name is typed, TED displays the table.
• The table named in text_input must be a text table. A text table can be parameterized and it must contain the following two fields:
A primary key field with a length of 4, a syntax of B (binary), and a semantic type of I (identifier). A field with a syntax of V (variable-length character string) and a semantic type of S (string).
Inserts after this line. This inserts a new blank line on the screen. Another line is inserted each time you press Enter, as long as the cursor is on the previous line. Using TED you can insert blank lines. Splits this line. The line splits where the cursor is positioned. This command is not sensitive to tokens. Words can be split.
If A or B marks the destination for a move or copy command, the marked destination is used. Otherwise, the destination is assumed to be after the line where the cursor is placed.Primary CommandsA command line exists at the top of both the formatted and unformatted screens. The primary command line accepts the following primary commands (except where noted otherwise):
The first occurrence of string old after the cursor position is replaced with the string new. If the option ALL is included, every string after the cursor changes. Tokens, indicated by spaces (' '), must separate strings in the command. This separator token must appear three times on the command line. This command is sensitive to case. COPY (source) Copies text from an existing text table into the document already on the screen. The source can be one of:2 – A table name, including parameter values, if parameterized.1 – At the top of the document, if the cursor is on the primary command line. The entire text is deleted from the database. You are prompted to confirm the deletion. This command is valid only on the unformatted text screen. The first occurrence of string after the cursor is located and highlighted. This command is sensitive to case. SAVE (tablename) Saves the text without leaving TED. If no tablename is given, the source table is overwritten. tablename follows the conventions of TED’s argument and can be a name or a table. Using this command, you can make a copy of your text by saving it under a new name.
Deletes the text. Refer to the remarks for the DELETE primary command above.The following application uses TED to write notes about employees. The initial application screen is EMPLOYEE_SCR_B, which contains the scrollable screen table EMPLOYEE_NAME:
When you type an S in the selection field beside the employee name and press PF4, the following rule is executed:
This rule displays the following table (in this case the table is for employee ROEDER and contains previously entered text, including SCRIPT commands):
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |