changing button label [message #84289] |
Mon, 23 February 2004 20:40 |
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 |
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.
|
|
|