Dialog not opening in the directory I want.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Dialog not opening in the directory I want.

Jim Harsh
Hi All,

In our application, I have a Dialog to request the directory holding
the data to be processed, which is usually a subdirectory of the
current directory. While working in the workspace (normally the
current working directory is in a value holder), the code looks like

directory := Dialog
        requestDirectoryName: 'Choose Directory'
        default: 'c:\old_d\harsh\ver747Dev'
        version: #old
        ifFail: ['']
        for: Dialog defaultParentWindow.
Transcript show:directory printString;cr.

When the Dialog opens, the Look in: field has c:\old_d\harsh
and the Directory Name field has ver746rc
In other words it opens one level higher than I want it to.


What method should I use to have the Directory Dialog box open in
c:\old_d\harsh\ver746rc rather than in c:\old_d\harsh ?


Thanks
Jim

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Jay
Reply | Threaded
Open this post in threaded view
|

Re: Dialog not opening in the directory I want.

Jay
If you are trying to select any file from a directory folder which you want to, then you can use
Dialog requestFileName: 'Choose File ' default: 'C:\Documents and Settings\Desktop\EXCEL TEST\Excel Issue\*'  version: #old
        ifFail: ['']
        for: Dialog defaultParentWindow.
This will open up a screen with all the files listed out in that folder.

Also,please provide the VW version that you are using. Bec'z I have VW 5i and do not see the method that you refered <requestDirectoryName>

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Dialog not opening in the directory I want.

Jim Harsh
In reply to this post by Jim Harsh


Thanks, that does exactly what I wanted.



At 02:43 AM 8/4/2011, QUENEA Olivier wrote:

>If you want the user to choose a subdirectory
>of  "c:\old_d\harsh\ver747Dev", you should try :
>=======================
>directory := Dialog
>         requestDirectoryName: 'Choose Directory'
>         default: 'c:\old_d\harsh\ver747Dev\*'
>         version: #old
>         ifFail: ['']
>         for: Dialog defaultParentWindow.
>=======================
>Bye !
>Olivier
>
>-----Message d'origine-----
>De : [hidden email]
>[mailto:[hidden email]] De la part de Jim Harsh
>Envoyé : mercredi 3 août 2011 22:02
>À : [hidden email]
>Objet : [vwnc] Dialog not opening in the directory I want.
>
>Hi All,
>
>In our application, I have a Dialog to request
>the directory holding the data to be processed,
>which is usually a subdirectory of the current
>directory. While working in the workspace
>(normally the current working directory is in a
>value holder), the code looks like
>
>directory := Dialog
>         requestDirectoryName: 'Choose Directory'
>         default: 'c:\old_d\harsh\ver747Dev'
>         version: #old
>         ifFail: ['']
>         for: Dialog defaultParentWindow.
>Transcript show:directory printString;cr.
>
>When the Dialog opens, the Look in: field has
>c:\old_d\harsh and the Directory Name field has
>ver746rc In other words it opens one level higher than I want it to.
>
>
>What method should I use to have the Directory
>Dialog box open in c:\old_d\harsh\ver746rc rather than in c:\old_d\harsh ?
>
>
>Thanks
>Jim
>
>_______________________________________________
>vwnc mailing list
>[hidden email]
>http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc