A script-enabled browser is required for this page to function properly.

EDIT_TEXTITEM Built-in

Description

Invokes the Runform item editor for the current text item and puts the form in Edit mode.

Syntax

PROCEDURE EDIT_TEXTITEM;

PROCEDURE EDIT_TEXTITEM
(x NUMBER,
y
NUMBER);
PROCEDURE EDIT_TEXTITEM
(x NUMBER,
y
NUMBER,
width,
NUMBER
height
NUMBER);

Built-in Type restricted procedure

Enter Query Mode yes

Parameters

x 
 
Specifies the x coordinate on the screen where you want to place the upper left corner of the pop-up item editor.
 
y 
Specifies the y coordinate on the screen where you want to place the upper left corner of the pop-up item editor.
 
width 
 
Specifies the width of the entire editor window, including buttons.
 
height 
 
Specifies the height of the entire editor window, including buttons. If you specify a height less than 6 character cells, or its equivalent, Oracle Forms sets the height equal to 6.

You can use the optional EDIT_TEXTITEM parameters to specify the location and dimensions of the pop-up window with which the item editor is associated. If you do not use these parameters, Oracle Forms invokes the item editor with its default location and dimensions.

EDIT_TEXTITEM Restrictions

The Width must be at least wide enough to display the buttons at the bottom of the editor window.

EDIT_TEXTITEM Examples

/*

** Built-in: EDIT_TEXTITEM
** Example: Determine the x-position of the current item
** then bring up the editor either on the left
** side or right side of the screen so as to not
** cover the item on the screen.
*/
DECLARE
itm_x_pos NUMBER;
BEGIN
itm_x_pos := Get_Item_Property(:System.Cursor_Item,X_POS);
IF itm_x_pos > 40 THEN
Edit_TextItem(1,1,20,8);
ELSE
Edit_TextItem(60,1,20,8);
END IF;
END;