Setting a tooltip text dynamically
sgalaxyApr 25 2006 — edited Apr 27 2006Hi , everybody
I have written a WHEN-NEW-ITEM-INSTANCE trigger on the form level which displays at-runtime a specific message according to the data type of item.
DECLARE
MAX_LENGTH_VAR NUMBER(4);
ITEM_TYPE_VAR VARCHAR2(30);
DATATYPE_VAR VARCHAR2(20);
ITEM_VAR VARCHAR2(40);
TOOLTIP_TEXT_VAR VARCHAR2(500);
BEGIN
ITEM_VAR :=:SYSTEM.TRIGGER_ITEM;
....
.....
IF DATATYPE_VAR='CHAR' THEN
SET_ITEM_PROPERTY(ITEM_VAR,TOOLTIP_TEXT,'message1');
ELSIF DATATYPE_VAR='DATE' THEN
SET_ITEM_PROPERTY(ITEM_VAR,TOOLTIP_TEXT,'message2');
....
......
END;
The problem is that the tooltip text does not appear until a specific item is activated (put the cursor on it and of course the first item of the form which is activated automatically at form startup).
I tried also the triggers WHEN-MOUSE-ENTER , WHEN-MOUSE-MOVE without any result.
I want the message to be displayed as the static tooltip text appears (activated or not activated the form item)..
Thanks ,
Simon