Home » Developer & Programmer » Forms » read forms path in the code from forms environment (10g forms migration)
read forms path in the code from forms environment [message #401502] Tue, 05 May 2009 04:56 Go to next message
sirivijay
Messages: 48
Registered: October 2008
Member
hi,
when migrating from forms 6i to 10g i hardcoded some paths for some required files c:\oracle\DevSuiteHome\forms\temp\tempxml.xml

But this is not an acceptable procedure as this code looses portability.this path completely different in development and production servers..

I want to read the forms path in the server i deployed and concatinate the remaining.can any one give me an idea how can i write this line

c:\oracle\DevSuiteHome\forms\temp\tempxml.xml by replacing c:\oracle\DevSuiteHome\forms with a variable which reads from environment file.

[Updated on: Tue, 05 May 2009 05:47]

Report message to a moderator

Re: read forms path in the code from forms environment [message #401571 is a reply to message #401502] Tue, 05 May 2009 10:18 Go to previous messageGo to next message
klat
Messages: 87
Registered: May 2009
Location: Mumbai
Member

Hi,

It is better to keep one table for storing these type of parameters.

for exaple a table with two fields CODE,VALUE
values like
CODE : PATH
VALUE : c:\oracle\DevSuiteHome\forms

whenever you wants PATH you can get it from your table and append the file name.


Re: read forms path in the code from forms environment [message #401935 is a reply to message #401502] Thu, 07 May 2009 01:46 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
What's wrong with puting the directory in 'forms_path' and just call the form by name?

David
icon14.gif  Re: read forms path in the code from forms environment [message #402246 is a reply to message #401502] Fri, 08 May 2009 03:26 Go to previous message
sirivijay
Messages: 48
Registered: October 2008
Member
this issue solved by creating the directory dynamically in forms_path and with the name of the session id and then deleting it once its gets transferred back to the client..

[Updated on: Fri, 08 May 2009 03:26]

Report message to a moderator

Previous Topic: $$dbdate$$
Next Topic: How to align the separate frame in center
Goto Forum:
  


Current Time: Sun Dec 04 10:48:15 CST 2016

Total time taken to generate the page: 0.11179 seconds