Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form appears properly only development machine

Status
Not open for further replies.

haste

Programmer
Feb 27, 2005
96
GH
I have recompiled a form that inherits from another form and also uses some linked libraries on my machine. The form is meant to run from a server. However after compiling the form using copies of the form it inherits from and libraries, the compiled form only appears properly from my machine when run and not other user machines.
I have recopiled it and ensured the linked libraries are are from the server but to no avail.
What could be the matter?
 
Can you explain in more detail what you mean by the compiled form only appears properly from my machine. How are you generating the fmx for use on the server?

Do you have the right forms and libraries compiled on your server and are all the paths set up correctly in your server config files?
 
By compiled form I mean the fmx version of the form.
To generate the fmx I copied the forms fmb file, the form it inherits from and libraries it uses to my machine. Then made the changes required and recompiled. From there I copied the forms fmb and fmx to the server.Upon running the fmx from my machine form appears alright, however from other user machines the inherited objects like textfield are visible.
Haven't checked the server config file, what's it called and where is it saved?
 
I assume from this that you are running in a client-server environment and not webforms.

Check your FORMSxx_PATH registry setting, where xx is the version of forms you are running. You will need to do this both on your own PC and the end-user's. If there is a difference the forms runtime may be attaching different versions of your reference forms and libraries depending on who is running the form.

Remember also that forms will first check for other forms and libraries in the current working directory before searching down the FORMSxx_PATH.
 
FORMSXX_PATH isn't on the user machine that I checked. It seems the default installation for user machines is Oracle forms runtime only.
Is there any way around this?
 
Oracle forms runtime installation should create the FORMSxx_PATH registry entry. How are the end-user runtimes installed?

If the registry variable is not present you will have to create it on each end-user PC.
 
The FORMSxx_PATH doesn't exist on the server either, the only thing installed is the oracle database. The form that the form inherits from and the libraries are in the curent directory that the form runs from, so it beats me why it doesn't appear proper.
Will try add the formsxx_path to one machine and see what happens.
Thanx heaps for all the help.
 
Note that if you have no FORMSxx_PATH set, the reference forms and libraries will need to be in the working directory of the forms runtime which may not necessarily be the same location as the main form you are running.

You will only need to set FORMS60_PATH (for example) on the PCs that are running the forms runtime. (ie the end-user PCs).
 
The problem is still there even on user machines that run Oracle forms. Am thinking it may be some OS privilege problem. The application bin on the server has been set to read only but allowing me to modify and add files. The user machines with the probs are running Win2k and Xp while my development workstation runs Win98.
 
Have you recompiled the forms on the Win2k/XP machines? Have you loaded the forms into a builder session on those PCs and checked that the objects appear as they should?
 
Used the user's machine the form which is the server and it appears fine on my machine and on another user's machine. Appears there's something up with my developer environment. Was using regmon (registry monitor) to check keys with the word 'PATH' referenced in the registry and my machine doesn't have the key ORACLE_PATH. Could this be an issue?

Sem:
The resolution of the machines using the form is standard, no problem there.

Thanks for all the help thus far.
 
You need to make sure you have the FORMS60_PATH key set (I am assuming you are running forms 6i here) and contains the directory where your forms, libraries etc are located.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top