Solved

FORMS 9i- help with SET_ITEM_PROPERTY

Posted on 2006-11-09
3
1,784 Views
Last Modified: 2008-01-16
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;

0
Comment
Question by:joekeri
3 Comments
 
LVL 6

Accepted Solution

by:
Ritesh_Garg earned 35 total points
Comment Utility
First thing is check if this piece of code is really executing.
Put some message and use pause;
Also before you run / create fmx, use ctl+shift+k so that the form compiles completely.

If you are sure that these above are not the reason, try using synchronize;
E.g.

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


Thanks,
Ritesh
0
 
LVL 12

Expert Comment

by:jwahl
Comment Utility
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;
0
 
LVL 28

Expert Comment

by:Naveen Kumar
Comment Utility
yes, try synchronize; once to see whether it is an issue related to memory/canvas refresh.

Thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now