|
|
Re: [FORMS10g] : Get Windows:My Documents Folder path? [message #632271 is a reply to message #632239] |
Wed, 28 January 2015 09:31 |
|
CraigB
Messages: 386 Registered: August 2014 Location: Utah, USA
|
Senior Member |
|
|
What is your Forms version? If you are using Forms 9i or higher, you can use WebUtil to get the User's Home directory [ webutil_clientinfo.get_system_property('user.home') ]. You can then add the "My Documents" to the Home Directory to get the full directory path. For example:
/* Sample Code - Untested */
DECLARE
v_my_doc_dir VARCHAR2(250);
BEGIN
v_my_doc_dir := webutil_clientinfo.get_system_property('user.home')||'\My Documents';
END;
You will need to ensure you have WebUtil configured on your application server for this to work. If you are testing your form by running it from the Forms Builder, then you will need to configure your local runtime for WebUtil as well.
If you are using Forms 6i or earlier, I don't recall if there is a way to get this information from the GET_APPLICATION_PROPERTY() built-in...
Craig...
|
|
|