Home » Developer & Programmer » Forms » calling a form from another form
calling a form from another form [message #293052] Thu, 10 January 2008 13:49 Go to next message
deahayes3
Messages: 203
Registered: May 2006
Senior Member

I am trying to call a form from another form in a button's when-button-pressed procedure I used call_form('formname', Hide);
when I run the application, I get the following error:
frm-40100 cannot read form, but if I put the full directory path in the statement call_form(c:/formname, hide); it works. How can I get this function to work without using the directory name when I run the form in forms 9i.
Re: calling a form from another form [message #293102 is a reply to message #293052] Thu, 10 January 2008 22:17 Go to previous messageGo to next message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
Are both the forms present in the same directory?

Are you running the forms on you local machine or on an application server?

Minto
Re: calling a form from another form [message #293117 is a reply to message #293052] Thu, 10 January 2008 23:25 Go to previous messageGo to next message
azamkhan
Messages: 548
Registered: August 2005
Senior Member
put your FORM MODULE in the FORMS__ direcotry. I mean like if you have FORMS 6i then there is a directory named FORMS60 if you put your form in this directory then you can call it without mentioning the full path.

Regards,
Azam Khan
Re: calling a form from another form [message #293160 is a reply to message #293117] Fri, 11 January 2008 00:59 Go to previous messageGo to next message
Littlefoot
Messages: 20891
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Well, I'd rather include a directory which contains your forms into the FORMS60_PATH environment variable (or, if on MS Windows, you could modify this key in Windows registry).
Re: calling a form from another form [message #293257 is a reply to message #293102] Fri, 11 January 2008 08:13 Go to previous messageGo to next message
deahayes3
Messages: 203
Registered: May 2006
Senior Member

They are present in the same directory, and I am making changes to the parent but running and testing on a local machine but the plan is to put it on the application server once I get this call_form to work.
Re: calling a form from another form [message #293258 is a reply to message #293160] Fri, 11 January 2008 08:20 Go to previous messageGo to next message
deahayes3
Messages: 203
Registered: May 2006
Senior Member

All my forms run fine alone, but its just when I try to call a form from another form it does not run, so do I still have to change something in the registry, if so, what exactly?
Re: calling a form from another form [message #293272 is a reply to message #293160] Fri, 11 January 2008 09:11 Go to previous messageGo to next message
deahayes3
Messages: 203
Registered: May 2006
Senior Member

it works. I copied and paste the forms that call each other into the forms90_path directory that I found in the registry. Thanks. So when I ready to put forms on the application server, do I do the same thing?

[Updated on: Fri, 11 January 2008 09:17]

Report message to a moderator

Re: calling a form from another form [message #293316 is a reply to message #293272] Fri, 11 January 2008 12:14 Go to previous messageGo to next message
Littlefoot
Messages: 20891
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Yes, into a server's FORMS90_PATH variable.
Re: calling a form from another form [message #293340 is a reply to message #293052] Fri, 11 January 2008 13:33 Go to previous message
mnanias
Messages: 40
Registered: September 2007
Location: AMERICA
Member
Hi,
My first ques is are u running those forms on UNIX platform or windows,if its UNIX then you should be careful abt the case sensitive. So now if you are running on windows then why don't you use
*** open_form('formname.fmx',activate,session,param_list_id);****
Even I am new to forms but i am able to call forms by using procedure and i think this works for you to. And my last suggestion would be open both the forms in form builder save them in the default forms path directory and also make sure that .fmx is in that directory and then try to run the form. I am sorry if my English is bad.

Previous Topic: PRE-INSERT
Next Topic: Horizontal Toolbar
Goto Forum:
  


Current Time: Sun Dec 04 18:35:49 CST 2016

Total time taken to generate the page: 0.04277 seconds