Home » Developer & Programmer » Forms » Navigating through Forms????
Navigating through Forms???? [message #233582] Thu, 26 April 2007 13:29 Go to next message
nvidia
Messages: 5
Registered: January 2007
Junior Member
Hi i have a file called Menue which has 1 canvas called MENU_CANVAS. The canvas has a button called TO_BOOKSEARCH. The button refered to using a datablock called MENU_BLOCK. The button uses a when button pressed trigger with the code:

open_form(BOOKSEARCH);

I have a separate file called BOOKSEARCH.fmb which i have opened. When i run the code i get the error "identifire 'BOOKSEARCH' must be declared". How can i make it recognise this second file so that i can navigate to it???

I was told that you could give it the path name as a parameter, is that right? If so, can somebody give me an example.

Thanks
Re: Navigating through Forms???? [message #233584 is a reply to message #233582] Thu, 26 April 2007 13:36 Go to previous messageGo to next message
Littlefoot
Messages: 20900
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Form name should be enclosed into single quotes.
Re: Navigating through Forms???? [message #233752 is a reply to message #233584] Fri, 27 April 2007 06:01 Go to previous messageGo to next message
nvidia
Messages: 5
Registered: January 2007
Junior Member
Hi i have put them in single quotes
open_form('booksearch');

but when i click on the button i get the error "cannot read form 'BOOKSEARCH'" can somebody tell me why bear in mind that they are different files.

Thanks.
Re: Navigating through Forms???? [message #233772 is a reply to message #233752] Fri, 27 April 2007 07:28 Go to previous messageGo to next message
Littlefoot
Messages: 20900
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Is booksearch.fmx in a directory which is part of the FORMS90_PATH?
Re: Navigating through Forms???? [message #233785 is a reply to message #233582] Fri, 27 April 2007 08:17 Go to previous messageGo to next message
imen_mr2004
Messages: 22
Registered: October 2006
Location: tunisia
Junior Member
hi, look if the .fmx file have the same name of the .fmb file and if they are in the same directory, because the call concern the .fmx file,
godd luck
Re: Navigating through Forms???? [message #233817 is a reply to message #233772] Fri, 27 April 2007 12:00 Go to previous messageGo to next message
nvidia
Messages: 5
Registered: January 2007
Junior Member
Hi i just checked, i realised the names were different. I am curious to know what do u mean by the term FORMS90_PATH?
as i have never come across that terminology.

Also, if they are in a different directory say, C:\Documents and Settings\someform.fmb how would you put that in this code:
open_form('??');


Thanks and guys.

[Updated on: Fri, 27 April 2007 12:03]

Report message to a moderator

Re: Navigating through Forms???? [message #233872 is a reply to message #233817] Fri, 27 April 2007 17:20 Go to previous messageGo to next message
Littlefoot
Messages: 20900
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
On MS Windows operating system, there is registry entry whose name is FORMS90_PATH. It should contain all folders (directories) you use for forms.

Another place to define its value is the DEFAULT.ENV file (you'll find it in a directory whose name looks like this (depending on a directory you used to install Developer Suite in): 'C:\oracle\product\90401\dev_suit\forms90\server').

If your forms (.fmx) or PL/SQL libraries aren't part of the FORMS90_PATH, Oracle will not be able to find and run them.
Re: Navigating through Forms???? [message #236453 is a reply to message #233872] Thu, 10 May 2007 00:59 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Make sure that you do not have spaces in the directory name.

David
Previous Topic: Request for Project on Forms and Reports !!
Next Topic: List item with tabular block
Goto Forum:
  


Current Time: Wed Dec 07 20:36:13 CST 2016

Total time taken to generate the page: 0.11187 seconds