My form is getting closed / :system.mode property [message #284249] |
Thu, 29 November 2007 04:10  |
spmano1983
Messages: 269 Registered: September 2007
|
Senior Member |
|
|
Dear Friends,
I faced a critical problem in Forms 6i.
I have some text boxes for getting input and new,save,search button also. Today I have modified some codes in When_validate_item trigger.
I compiled and created FMX file also.
I didn't modified in any button triggers.
But while clicking the Search button the form will be closed immediately. Why this is happening? Anyone have any idea?
The Search Button have this code's
if (:System.mode='Normal') then
set_item_property('load_station.query',label,'Executive Search');
message('Press Execute Search or Control+F4 to cancel',NO_ACKNOWLEDGE);
enter_query;
else
set_item_property('load_station.query',label,'Enter_search');
execute_query;
end if;
Thanks
Mano
|
|
|
|
|
|
|
|
|
Re: My form is getting closed / :system.mode property [message #284504 is a reply to message #284249] |
Thu, 29 November 2007 22:47   |
spmano1983
Messages: 269 Registered: September 2007
|
Senior Member |
|
|
Hi,
I deleted previous fmx file and compiled full. Then recreated fmx file and replace the current also. But still i can't able to search any queries. Not a single command button. i have 10 tab pages and in all tab pages i have search button. this contain already i mensioned block (See above). Whenever i try to search in any tab page immediately it's getting closed.
What to do for this?
Anyway to set :system.mode='Normal' when opening form.
Thanks
Mano
|
|
|
|
|