Solved

FORMS 9i- help with SET_ITEM_PROPERTY

Posted on 2006-11-09
3
1,802 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
ID: 17912178
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
ID: 17912312
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
ID: 17913032
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

912 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

20 Experts available now in Live!

Get 1:1 Help Now