Webutil - DIRECTORY_SELECTION_DIALOG - unable to select the root directory [message #254045] |
Wed, 25 July 2007 11:01 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
REDALERT
Messages: 7 Registered: July 2007
|
Junior Member |
|
|
Hi everyone,
I have a problem when using "webutil_file.DIRECTORY_SELECTION_DIALOG". I am unable to select the root directory of a disk (ex.: c:\,d:\,etc..)
I can select any sub-directory but I can't select the main directory.
Here is the syntax I use:
:Parametre.Target_dir := webutil_file.DIRECTORY_SELECTION_DIALOG('C:\WINDOWS\TEMP','Target directory');
We use Web_util 1.0.5 with Forms 9.0.4 on Windows.
Question: Is it possible to select the root with that? If yes, what am I doing wrong? If not, any idea about the way to do that using something else ?
|
|
|
|
|
|
Re: Webutil - DIRECTORY_SELECTION_DIALOG - unable to select the root directory [message #256251 is a reply to message #256066] |
Fri, 03 August 2007 10:21 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
REDALERT
Messages: 7 Registered: July 2007
|
Junior Member |
|
|
Hi David,
I've uploaded a print screen of what I got.
What I want to do is to, from an Oracle Forms screen, let a user produce an extraction file and save a file (fixed filename GESTR603.TXT) in the directory he choose (using webutil). The filename is always the same but I want them to be able to choose the directory.
This works fine except when user want to use the root directory. He can't select it. (or maybe I do something wrong when selecting the directory)
We have tried to substr the returned string, but, it return something like the word "null". I do not remember exactly but it was something like this. With this string, we even can't determine which disk was selected. I can't test it now because I am in vacation for a month and this problem is at office and I am at home now. I have to ask to a programmer to test it and give you the response.
I can see the content of c:\ but can't select \ as the target directory.
About the suggest to select anything, then substring, I don't want it because it suggests to the user that he can select a filename. The user will search for this filename and will not find the file. It will be annoying...
Thanks again for your help and your time. It is very appreciate..
If you do want I test something else, let me know, I will contact the programmer.
(Sorry for my english, it is not very good... if something is not clear, let me know...)
-
Attachment: getdir.doc
(Size: 30.00KB, Downloaded 2021 times)
|
|
|
|
|
|
Re: Webutil - DIRECTORY_SELECTION_DIALOG - unable to select the root directory [message #257441 is a reply to message #257288] |
Wed, 08 August 2007 06:46 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
REDALERT
Messages: 7 Registered: July 2007
|
Junior Member |
|
|
Hi David,
This is my code.
BEGIN
:Parametre.Rep_Cible := webutil_file.DIRECTORY_SELECTION_DIALOG('C:','Répertoire cible');
If :Parametre.Rep_Cible is not null
Then
:Parametre.Rep_Cible := :Parametre.Rep_Cible||'\';
End If;
EXCEPTION
WHEN NO_DATA_FOUND THEN
-- Aucun fichier sélectionné. Fin de la procédure.
Affich_alert_pc('GEN-00111');
WHEN OTHERS THEN
null;
end;
Jocelyne
|
|
|
|
|
|
Re: Webutil - DIRECTORY_SELECTION_DIALOG - unable to select the root directory [message #264754 is a reply to message #260789] |
Tue, 04 September 2007 08:10 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
REDALERT
Messages: 7 Registered: July 2007
|
Junior Member |
|
|
Hi David,
Finally, we haven't found a way to select the root directory directly with the mouse. On the other hand, the user is able to write C:\ directly in the field. Be sure to use a "text field" in Oracle Form (read/write field). This way, user can save the file in the root. It is not as good as we expected at the beginning, but at least, it do the job...
Thank you for your time. It was very appreciated....
Redalert from Québec city, Province of Québec, Canada...
|
|
|
|
|