Link to home
Start Free TrialLog in
Avatar of joekeri
joekeriFlag for United States of America

asked on

FORMS 9i- help with SET_ITEM_PROPERTY

I have a field on my form as a TEXT ITEM and the properties are ENABLED YES, VISIBLE NO.

WHen I start the form the field is hidden just as I want it to be. But when I run some code, it shoudl become VISIBLE, but its not.

My code is

IF :acctount > 0 then
    set_item_property('TXT_AMOUNT',enabled,property_true);
    set_item_property ('TXT_AMOUNT',visible, property_true);
end if;

ASKER CERTIFIED SOLUTION
Avatar of Ritesh_Garg
Ritesh_Garg
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jwahl
also make sure that the item is on the correct canvas, tab page etc.
check the position of the item in the layout editor.
you can also check if the trigger is executed correctly with some extra checks (e.g. in an WHEN-MOUSE-DOUBLECLICK trigger);

BEGIN
    IF GET_ITEM_PROPERTY('TXT_AMOUNT',visible) = 'TRUE' THEN
        MESSAGE('Item is visible at ' || GET_ITEM_PROPERTY('TXT_AMOUNT', x_pos) || '/' || GET_ITEM_PROPERTY('TXT_AMOUNT', y_pos));pause;
    ELSE
        MESSAGE('Item is NOT visible!');PAUSE;
    END IF;
END;
yes, try synchronize; once to see whether it is an issue related to memory/canvas refresh.

Thanks