WebUtil client_get_file_name [message #446128] |
Fri, 05 March 2010 09:16 |
neilriach
Messages: 4 Registered: March 2010 Location: UK
|
Junior Member |
|
|
Hi,
I am trying to use client_get_file_name to display the select file dialog box. My problem is that I can get the dialog box to open but it does not default to the folder that I specify in the client_get_file_name parameter (r_system_data.import_dir points to c:\reports).
v_filename := client_get_file_name(r_system_data.import_dir, null,
'CSV Files (*.csv)|*.csv|',
'Select a file to import travel details from');
The strange thing is when I use JInitiator 1.3.1.22 the diolog box defaults to the c:\reports folder but when I use J2SE JRE 1.5.0_21-b01 it defaults to c:\temp (which is where 'My Documents' points to, may be just a coincidence)
I am running Windows XP SP3 with IE8
Hope someone can help me or point me in the wright direction.
Many thanks
Neil [EDITED by DJM: cut overly long line]
[Updated on: Tue, 16 March 2010 01:45] by Moderator Report message to a moderator
|
|
|
Re: WebUtil client_get_file_name [message #446242 is a reply to message #446128] |
Sat, 06 March 2010 21:41 |
tamzidulamin
Messages: 132 Registered: October 2009 Location: Dhaka
|
Senior Member |
|
|
Dear,
try the following code:
Declare
v_file varchar2(500);
Begin
v_file := CLIENT_GET_FILE_NAME (directory_name => 'C:\Forms\Reports',
file_name => NULL,
file_filter => NULL,
message => 'Open a file',
dialog_type => OPEN_FILE);
End;
Tamzidul Amin.
|
|
|
Re: WebUtil client_get_file_name [message #446974 is a reply to message #446242] |
Thu, 11 March 2010 03:38 |
neilriach
Messages: 4 Registered: March 2010 Location: UK
|
Junior Member |
|
|
Hi Tamzidul
many thanks for your suggestion. I gave it a try but the result was the same. I will continue to work at it and if I have any success I will post the result.
Many thanks
Neil
|
|
|
Re: WebUtil client_get_file_name [message #446994 is a reply to message #446974] |
Thu, 11 March 2010 05:37 |
tamzidulamin
Messages: 132 Registered: October 2009 Location: Dhaka
|
Senior Member |
|
|
Dear,
Please make sure your WEBUTIL configuration is correct or not.
Because the following code is ok.
Declare
v_file varchar2(500);
Begin
v_file := CLIENT_GET_FILE_NAME (directory_name => 'C:\Forms\Reports',
file_name => NULL,
file_filter => NULL,
message => 'Open a file',
dialog_type => OPEN_FILE);
End;
Regards,
Tamzidul Amin
|
|
|
|
Re: WebUtil client_get_file_name [message #448259 is a reply to message #447562] |
Mon, 22 March 2010 06:46 |
neilriach
Messages: 4 Registered: March 2010 Location: UK
|
Junior Member |
|
|
Hi David,
I have created a few forms some with WebUtil functionality and some without. I have had the 'test' form working. When I use JInitiator the dialog box opens at the intended folder(c:\reports) but when I use JRE 1.3, 1.4 or 1.5 it opens at 'My Documents' folder.
Many thanks
Neil
|
|
|