Home » Developer & Programmer » Forms » changing button label
changing button label [message #84289] Mon, 23 February 2004 20:40 Go to next message
Khan
Messages: 8
Registered: February 2001
Junior Member
Hi.. I want to put the form in query mode by clicking a button, then change its label to 'Go'. But after entering criteria I want to use the same button for execute query. and want to change the label again to 'Search'; I used the following code but it failed. Please guide me...

begin
go_block('rbk');
IF :system.mode = 'NORMAL' THEN
Enter_Query;
set_item_property('find_but',label,'Go');
ELSE
EXECUTE_QUERY;
set_item_property('find_but',label,'Search');
end if;

end;
Re: changing button label [message #84310 is a reply to message #84289] Sun, 29 February 2004 20:21 Go to previous message
Sameer
Messages: 60
Registered: March 1998
Member
begin
go_block('emp');
IF :system.mode = 'NORMAL' THEN
set_item_property('control.query_button',label,'Go');
Enter_Query;
ELSE
set_item_property('control.query_button',label,'Search');
EXECUTE_QUERY;
end if;
end;

First set the item's property then make use of built-in.And make mouse navigation property of button to No.
Previous Topic: Insert on a queried form
Next Topic: How to update values in ComboBox
Goto Forum:
  


Current Time: Fri Apr 19 13:47:17 CDT 2024