Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Set Enabled

Posted on 2005-04-06
2
Medium Priority
?
9,494 Views
Last Modified: 2008-01-09
hi
i have a question
i have some Button in my form (CREATE_BTN,EDIT_BTN,DELETE_BTN,CANCEL_BTN,SAVE_BTN,EXIT_BTN)
i wanna DISABLE some of them when i open my form for first time , and ENABLE again when some Button clicked
i wrote these codes in WHEN-NEW-FORM-INSTANCE :
        go_item('CREATE_BTN');
        set_property_to_text(false); --this procedure Disable all TextItem
        set_item_property('exit_btn',enabled,property_true);
        set_item_property('edit_btn',enabled,property_true);
        set_item_property('del_btn',enabled,property_true);
        set_item_property('cancel_btn',enabled,property_false);
        set_item_property('save_btn',enabled,property_false);
        set_item_property('create_btn',enabled,property_true);

i have a problem with it when i run form , it work correctly but it shows me this message in StatusBar >> FRM=41032:Cannot ser ENABLED attribute of currect item CREATE_BTN.
i dont know what's the problem for, and i dont want to see it
plz help me to


0
Comment
Question by:Mahsa60
2 Comments
 
LVL 6

Accepted Solution

by:
Jankovsky earned 200 total points
ID: 13714923
You have to go_item(<another item>); than you wanna disable or enable

       go_item('CANCEL_BTN');
       set_item_property('create_btn',enabled,property_true);
       go_item('CREATE_BTN');
        set_property_to_text(false); --this procedure Disable all TextItem
        set_item_property('exit_btn',enabled,property_true);
        set_item_property('edit_btn',enabled,property_true);
        set_item_property('del_btn',enabled,property_true);
        set_item_property('cancel_btn',enabled,property_false);
        set_item_property('save_btn',enabled,property_false);
0
 
LVL 5

Expert Comment

by:helpneed
ID: 13714935
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Via a live example, show how to take different types of Oracle backups using RMAN.
Suggested Courses

564 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