Oracle Forms – Dynamic Message Tool Tip

Multiple tooltip message in single text field

Step 1:-

Create
canvas and Using below script. Below screen shot for reference.

Step 2
Create Text_field
and Using below script. Below screen shot for reference.

Step
3:
Below script using in
tabular form level where ever it is required for hint. Use this in  “”When-New-item-Instance” trigger event.
DECLARE
   xposition   NUMBER;
   yposition   NUMBER;
   cnt         NUMBER := TO_NUMBER (:SYSTEM.cursor_record);
BEGIn
 :ctrl.di_item_script
:= ‘Message
will type here’
;
       SET_CANVAS_PROPERTY (‘CAN_IT_SCRIPT’,
canvas_size
, 200, 20);
       SET_VIEW_PROPERTY (‘CAN_IT_SCRIPT’,
view_size
, 200, 20);
       SET_ITEM_PROPERTY (‘CTRL.DI_ITEM_SCRIPT’,
item_size
, 200, 20);
       xposition :=
GET_ITEM_PROPERTY
(:SYSTEM.cursor_item, x_pos);
       yposition :=
GET_ITEM_PROPERTY
(:SYSTEM.cursor_item, y_pos);
       SET_VIEW_PROPERTY (‘CAN_IT_SCRIPT’,
display_x_pos
, xposition);
       SET_VIEW_PROPERTY (‘CAN_IT_SCRIPT’,
display_y_pos
, yposition + (16 * cnt));
       SHOW_VIEW (‘CAN_IT_SCRIPT’);
END;
  • January 8, 2018 | 27 views
  • Comments