calling a form from another form [message #172454] |
Tue, 16 May 2006 10:04 |
ramanajv1968
Messages: 168 Registered: December 2005 Location: HYDERABAD
|
Senior Member |
|
|
Hi,
U r help is greatly appreciated.
Can any one help on this problem.
I have two forms in two different modules.
Like Main_form in one module.
Secondly I have another form called Login_Form.
In the main_form I have a Create Login button. When I press this button , it should show the form called Login_Form.
I have written the code
in the main_form of create_login under trigger called when_button_pressed.
call_form('Login_Form',display);
But it is not working.
can any one please help on this.
Thanks & Regards,
|
|
|
|
Re:when new form displays , calling form should be automatically closed [message #172535 is a reply to message #172490] |
Wed, 17 May 2006 02:31 |
ramanajv1968
Messages: 168 Registered: December 2005 Location: HYDERABAD
|
Senior Member |
|
|
Thanks,
for u r useful information with that i solved my problem.
But i have one more query . when i call a form say FORM B from another form say FORM A . FORM B is displaying but FORM A is not closing automatically.
In nutshell ,
when i call a form from another form calling form should be closed automatically and it should be display only new form.
Any help in this regard will be appreciated,
ramana
|
|
|
|
|
|
Re: calling a form from another form [message #172962 is a reply to message #172454] |
Thu, 18 May 2006 14:29 |
ramanajv1968
Messages: 168 Registered: December 2005 Location: HYDERABAD
|
Senior Member |
|
|
Hi ,
I still have the same problem. I am creating a login form
when i pressed SIGN IN Button ,It must check whether the user exist in the table or not.
If the user is exist then it should be display a new form.So for this requirement, I wrote the
following trigger on SIGn Button as when_button_pressed
------------The code is as follows----------------
select 'x' into :global.dummy from sw_login
where swusername = :sw_login.swusername and
swpassword = :sw_login.swpassword;
pause;
call_form('C:\Madhav\Oracle_forms_CD_DOC\BookCodes\Project\Banking_System\6i\Forms\CTE_MADHAV\cte_COMPANY',hide,no_replace,no_query_o nly,'X');
exception
when no_data_found then
message('Username and/or password are incorrect');
raise form_trigger_failure;
-----------------------------------------------------------
When i pressed SIGN Button with existing username,password I am successfully moving to next form.
But when i closed this second form , I am again seeing the Previous login form.
In nutshell when the control is shifted to the new form it should not display the previous form.
Please if possible give me the code .Its very very urgent.
Hoping to find solution soon.
Thanks ,
ramana
|
|
|
|
|