Home » Developer & Programmer » Forms » set_item_property - to Enabled False (Oracle Developer (form builder) 6i)
set_item_property - to Enabled False [message #435060] Mon, 14 December 2009 01:47 Go to next message
fcherri
Messages: 10
Registered: December 2009
Junior Member
Hey,

I am trying to set the item Prperty to "Enabled" False of a TEXT_ITEM.

I am doing it at the end of a Trigger of a certain Button using the below code:

declare
it_id Item;
begin
Go_block('XX_DLV_PREPARED_ORDERS');
clear_block(NO_COMMIT);
get_newly_prepared_orders(:XXHEADER.T_ROUTE_NAME);

go_block('XXHEADER');
it_id := Find_item('XXHEADER.T_ROUTE_NAME');
set_item_property(it_id, enabled, PROPERTY_FALSE);
--commit;
END;



It is not Having any effect!
Can you please help.

Thx.
Farah
Re: set_item_property - to Enabled False [message #435065 is a reply to message #435060] Mon, 14 December 2009 02:04 Go to previous messageGo to next message
rajy_salim
Messages: 204
Registered: January 2008
Location: Beirut - Lebanon
Senior Member
Try using
set_item_property('XXHEADER.T_ROUTE_NAME', enabled, PROPERTY_FALSE);

instead of
go_block('XXHEADER');
it_id := Find_item('XXHEADER.T_ROUTE_NAME');
set_item_property(it_id, enabled, PROPERTY_FALSE);

Rajy
Re: set_item_property - to Enabled False [message #435069 is a reply to message #435065] Mon, 14 December 2009 02:56 Go to previous messageGo to next message
fcherri
Messages: 10
Registered: December 2009
Junior Member
It did not work.

Maybe I should add that The field T_ROUTE_NAME is an LOV Based.

Thx
Re: set_item_property - to Enabled False [message #435094 is a reply to message #435060] Mon, 14 December 2009 04:34 Go to previous messageGo to next message
cookiemonster
Messages: 12320
Registered: September 2008
Location: Rainy Manchester
Senior Member
It could be the cursor is in the item you are trying to disable. You can't disable the current item.
TRy adding a go_item to a different item immediately before you set the enabled property.
Re: set_item_property - to Enabled False [message #435117 is a reply to message #435094] Mon, 14 December 2009 06:45 Go to previous message
fcherri
Messages: 10
Registered: December 2009
Junior Member
Thans alot cookiemonster.
It worked Smile

Farah.
Previous Topic: Split the data For Search
Next Topic: Need to eliminate "Do you want to save changes" at close form (merged 4)
Goto Forum:
  


Current Time: Thu Sep 29 20:58:02 CDT 2016

Total time taken to generate the page: 0.11095 seconds