Browse for Folder path.

Hi,
I have a requirement to store a directory path in a database, and would like the user to be able to browse to a folder and select it, so that the full path can be stored in a table.
I plan to have the initial browse point default to a network drive and parent directory, under which the user will navigate and select the appropriate child directory, probably at least 2 levels down.
The user will be entering data via a form. I had envisaged using a display only field to show the path, (blank for new records), and then having a 'Browse' button to select the directory, before submitting the form.
The question is how to achieve this. The File Browse item type is nearly there, but is obviously more concerned with uploading files. I just want to select and store a directory path.
Any ideas on how I can achieve this please. I have been trying to get a button to run some java script to open up a dialogue and return a directory path, without success, and I am not sure this is the best approach.
Thanks in advance
Mark

For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8 and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\".
Changes to IE's security config setting “Include local directory path when uploading files” enables the path to be exposed in IE8, but unless you're working in an intranet environment where: IE is the only browser used; it's possible to make remote changes to this setting on every desktop; and this won't break/expose anything else, then you'd be strongly advised to rethink this requirement.
For more information see:
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx
I have a requirement to store a directory path in a database, and would like the user to be able to browse to a folder and select it, so that the full path can be stored in a table.If you explain what this requirement is then possibly some alternative approaches can be suggested that don't involve storing file paths.

Similar Messages

  • Problem with Copy To/Browse for Folder

    Don't know when it started doing this, but now when I right-click and select Copy To and select Browse for Folder it only shows me folders that are under my W7 user name.
    I need to get to my external drive, but it doesn't display Computer.
    Strange and very inconvenient.
    Looking for a solution.

    Hmm, can't imagine how my workspace would relate to what drives Bridge reads using the Copy To. My drives show up just fine in the folders view. And also in the Export to dialog.
    I keep my images on an external drive.
    Folders that are not under my user name on C drive, but still on another drive show up in the recent ones in Copy To and access just fine.
    So it makes no sense that Copy To>Browse for Folder only displays my drive C Windows user folder on that other drive.

  • Browse For Folder Dialog

    I am trying to display a "Browse For Folder" dialog
    Note that this is not the JFileChooser with the DIRECTORIES_ONLY flag
    It is this one
    http://i.msdn.microsoft.com/Bb964683.ed6b0efa-d190-4995-861d-abc3571b06ac(en-us,office.12).gif
    There have been several posts over the years on these forums asking similar questions without answers.
    I can't believe that noone has ever made one since so many people want this functionality.
    There doesn't appear to be one in the Swing Package.
    Does anyone know of a free jar that contains this?

    JDirectoryChooser
    And while we are with choosers, we might also want to try the folowing choosers for colors and dates:
    [Quick Color Chooser|https://colorchooser.dev.java.net/]
    [MultiDateChooser |http://www.javafr.com/codes/SELECTEUR-DATES-MULTIPLES_48407.aspx] (to download the zip you must be connected with your CodeS-SourceS account wich is totally free)
    Edited by: Andre_Uhres on Feb 23, 2009 6:02 AM

  • Browse for folder button in JSP Page

    Trying to create a browse for folder button in a JSP page. Anybody with some ideas on how to do this? Applet, Bean, some other way? Has anybody done this before? Is it even possible?
    Thanks in advance!

    We have done it with Struts before. Also seen it done with javascript.

  • Browse for folder

    Hi all,
    I was using "JFileChooser" for selecting a directory by setting it's selection mode to "DIRECTORIES_ONLY".
    But, we noticed that the users are getting a little confused with the "JFileChooser" when they have to select a directory. And Windows OS uses something called the "Browse for folder" control which shows all the directories in a Tree structure and the users are less confused by this component.
    So, is there any swing component which looks like the "Browse for folder"???
    Thank you.

    The GET_FILE_NAME built-in allows you to search for a directory as well as a file - check out the on-line help for it.

  • Browse for Folder function for PHP?

    can anyone recommend a good plug-in to implement the Windows
    "browse for folder"
    function in php? I am looking for something like the menu you
    get when you want
    to select a folder in theDreamweaver "Find and replace"
    function.
    Clancy

    Look on Gary White's site -
    http://www.apptools.com - for
    his tutorial on
    how to create a dynamic sitemap in PHP. With modifications,
    that's exactly
    what you need.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Clancy" <[email protected]> wrote in message
    news:[email protected]...
    > "SnakEyez02" <[email protected]> wrote:
    >
    >>My suggestion would be to head over to
    www.hotscripts.com and take a look
    >>at
    >>the File Management section of the PHP scripts.
    >>
    >> Any file script will open a window to browse for
    files, but there are
    >> scripts
    >>which make the process as easy as possible on the end
    user and can do what
    >>you
    >>need to do with the file.
    >>
    >> If you provide more detail about what you need the
    script to do someone
    >> can
    >>probably recommend a good script to accomplish the
    job.
    >
    > Thank you.
    >
    > I have been working on several similar programs to
    manipulate data files,
    > and
    > have got them working pretty well. The one serious
    shortcoming is in the
    > procedure for specifying which file to read. In the
    current version the
    > initial
    > menu has a simple text entry box for the user to enter
    the name of the
    > data file
    > to load. What I want to do is to extend the
    functionality of this, so
    > that the
    > user can browse the directory to find a particular file
    to load.
    >
    > I want to replace the current Text box with something
    that looks like a
    > Select
    > box, but when you click the arrow at the right you get
    the directory tree,
    > with
    > each directory preceded by a + or - symbol which you can
    click to show or
    > hide
    > the subdirectories and the files in the directory. The
    window would have
    > to
    > have vertical and probably horizontal scroll bars, so
    that you could find
    > a
    > particular file you wanted, then click it to highlight
    it, and finally
    > close the
    > window and load the file.
    >
    > So what I want is basically a Select box, but with
    functionality somewhere
    > between Dreamweaver's 'Files' menu, and Disc Explorers
    'Folders' menu.
    > For this
    > application I only want to be able to select a
    particular file to load,
    > but in
    > the future it might also be nice to have the ability to
    drag and drop
    > files, as
    > in Windows Disc Explorer.
    >
    >
    > Clancy

  • "Browse for Folder" Issue

    Has anyone else had the problem where they cannot go to any subfolders in their "Browse for Folder" dialog box?
    I have all of my photos organized by year and then by month.
    I have made changes to various photos and want to save them. However, when I go to export my changes, I can only export to my "Main" folder. When I click on the plus (+) sign, nothing happens besides the plus (+) sign disappearing. Nothing locks up.
    For now, I am saving to my main folder and then manually moving them to the folder I want them in.
    Thanks,
    -Lou

    All I'm trying to do is find a folder to export my modified photo to.
    For example, I pull up photo DSN_5678. It was imported from My Pictures\2007\06-June folder. I make my changes to the image and now want to "save" the changes so I can have it available for other users on my network. (NOTE: Ignore the network comment since I use another program to backup my pictures to my network from my local hard drive. I keep all my pictures on my local hard drive and back up to a server for everyone else to see and use.)
    When I click on Export, the dialogue box comes up just as it should.
    I then click on the "Choose..." button in order to change the directory. When I go to "choose" the folder I want to save/export the image to, it doesn't allow me to select any other folders than the ones listed in the "Browse for Folder" dialogue box (My Computer, My Pictures, Shared Documents and a few others that I do not want my pictures saved to). Everytime I click on the plus (+) sign to expand the tree, nothing happens beside the plus (+) sign disappearing.
    Any suggestions?

  • Export presets now direct me to the "Browse For Folder" dialog box

    Suddenly Lightroom will not remember the name of the "export to" folder when I use my export presets in certain ways, even though the name of the "export to" folder appears in the "Export" dialog box. The prolem exists in Library and Develop modules. This is what's happening…
    IF I CLICK ON "FILE":
    1. And choose the "Export" option, LR displays the Export dialog box, from which I can select an user preset and export a JPG file to the proper folder, as intended. (OK) 
    2. And choose the "Export with Previous" option, LR exports the JPG file immediately to the proper folder. (OK) 
    3. And I choose the "Export with Preset option, LR displays the menu of Lightroom presets and user presets, but clicking on a user preset displays the "Browse for folder" dialog box from which I must manually browse to the export folder before a file can be exported. (NOT OK) 
    IF I RIGHT-CLICK ON THE IMAGE:
    LR displays a menu containing these options: Export, Export with Previous, the Lightroom presets, and my user presets. 
    4. If I then choose "Export," LR works properly---same as example 1 above. (OK) 
    5. If I then choose "Export with Previous," LR exports the JPG file immediately. (OK) 
    6. If I then choose one of my presets, LR does not work properly: it acts as it does in example 3 above. (NOT OK) 
    BACKGROUND:
    I have been using these presets for almost a year without fail---they're great! Two days ago I moved my Lightroom catalog to a new external drive. I also renamed the "export to" folder (that new name is stored in the "Export" dialog box). 
    I sure would appreciate hearing from anyone on this because it's driving me crazy. Thanks.

    SOLUTION FOUND:
    I created yet another folder for storing exported JPGs. Then for each export preset I used the "Browse For Folder" dialog to point that preset to that new folder. All presets now work as before. This fix was tolerable for the seven presets I have, but a large number of presets would have made it a real chore.

  • Browse for Folder takes 3-1/2 minutes!

    I am using LR3.3.  Everything seems to work well except when I want to export a photo.  I choose "Export To  ---> Specific Folder"  and then it takes a full 3-1/2 minutes (not seconds, but minutes), which is like an eternity, for the "Browse to Folder" dialog box to pop up. This happens every time. I appreciate your help.

    UPDATE:   I remembered that when I am at home and want to start my computer, I have to disconnect the internet cable or it takes almost 5 minutes to start Windows.  The IT guy in my office told me that this is because the computer is trying, many times, to connect to the office server before giving up and finally allowing Windows to start.  So in a moment of inspiration, I turned off the wireless on my computer, started Lightroom and attempted to export a photo.  This time, the folder box appeared as fast as lightening!   This is great, except now I must disconnect from the internet each time.  Do you have any ideas?In any case I'm feeling good that we're making progress on this conundrum.

  • How to browse for the folder

    Hi,
    I want to browse for the folder instead of a particular file in a JSP page.
    Can I use applet for this purpose?
    if yes what is the proper way/

    How about "browse for folder" dialog? Can
    html/javascript do that?Maybe. You should ask in a JavaScript forum.
    Java != JavaScript

  • ActionScript 3 Air Desktop Application Browse For Local Directory Popup

    Hello all,
    I am developing a desktop Air program that will include a browse button that allows the user to click, and once the user clicks the button, I am wanting a pop-up window to appear that allows the user to browse to a writable folder/directory on his computer. Once the user selects a folder in the window, I want to grab that directory location and store it. The storing part I know how to do, but how to create this pop-up window or dialog, I do not have a clue where to start.
    What's the simplest way to go about this?
    Edit:
    I see I can use this example from this site, but I don't know where to grab the directory the user selected: actionscript 3 - How to create "Browse for folder" dialog in Adobe FLEX? - Stack Overflow
    var f : File = new File;
    f.addEventListener(Event.SELECT, onFolderSelected);
    f.browseForDirectory("Choose a directory");

    This seems to be supported by AIR only.
    What gives you the impression?
    AIR-only functions are marked with a fancy AIR logo
    (like the first one in this list: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/images/sprite-index.png )
    and getData doesn`t have it, so it should work without problems in the "normal" Flash Player if you follow the recepy:
    Note for Flash Player applications: In Flash Player 10, a paste operation from the clipboard first requires a user event (such as a keyboard shortcut for the Paste command or a mouse click on the Paste command in a context menu). Clipboard.getData() will return the contents of the clipboard only if the InteractiveObject has received and is acting on a paste event. Calling Clipboard.getData() under any other circumstances will be unsuccessful.

  • Scripting: browse for data files in a folder and all subfolders below

    Hello,
    i'm looking for a command to search for data files (*.dat) in a folder and all subfolders below.
    I checked out command DirListGet. This command only search in the declared folder and not in the subfolders below.
    Anyone an idea?
    I don't want to use a loop-structure for finding subfolders and browse for the data files.
    Mr. Buddy

    dim result : result = DirListGet("C:\tmp", "*.dat", "filename", "FullFilenamesRecursive")
    dim fl : for each fl in result
    MsgBox fl
    Next
    Works fine for me and even recursive.
    Alternatively but with mucg more effort and the same result.
    Option Explicit 'Forces the explicit declaration of all the variables in a script.
    dim folderPath : folderPath = "C:\tmp"
    dim files : files = GetFileListRecursive(folderPath)
    dim fl : for each fl in files
    MsgBox fl
    Next
    Function GetFileListRecursive(folderPath)
    dim fso : Set fso = CreateObject("Scripting.FileSystemObject")
    dim results : results = Array()
    GetFiles fso, folderPath, results
    GetFileListRecursive = results
    End Function
    Sub GetFiles(fso, folderPath, results)
    dim folderObj : Set folderObj = fso.GetFolder(folderPath)
    dim f : for Each f In folderObj.Files
    if(0 = StrComp(fso.GetExtensionName(f), "dat", 1)) then
    dim index : index = ubound(results) + 1
    redim Preserve results(index)
    results(index) = f.Path
    End If
    next
    dim d : for Each d In folderObj.SubFolders
    GetFiles fso, d.Path, results
    next
    End sub

  • Error when uninstalling App-V RDS client: Product: Microsoft Application Virtualization (App-V) Client for Remote Desktop Services 5.0 Service Pack 2 x64 -- Error 1324. The folder path 'C:' contains an invalid character

    Issue:  experienced when attempting to uninstall the App-V 5.0 SP2 RDS client. 
    Event Log:  Product: Microsoft Application Virtualization (App-V) Client for Remote Desktop Services 5.0 Service Pack 2 x64 -- Error 1324. The folder
    path 'C:' contains an invalid character
    Symptoms (when in this current state): 
    Unable to uninstall the SP2 client
    You can upgrade the client (via hotfix) and uninstall the hotfix, but you will not be able to remove the SP2 client
    AppvVfs filter driver will not create an instance, therefore applications will not be able to read into existing streamed VFS content, or trigger sparse files to stream content.  (you can still stream the content via other means, like the UI or powershell)
    Because of the AppvVfs filter driver not instantiating, applications that depend on licences that exist in VFS will not be able to be read causing certain applications to react as if the license does not exist or is an incorrect format

    Resolution:
    Check for the existence of a hidden folder named %appdata% in the C:\Program Files\Microsoft Application Virtualization\Client folder.  (You will need to un-check the folder options box in windows explorer for "Hide
    protected operating system files" to see it)
    If the hidden %appdata% folder exists, delete it.
    Proceed to uninstall the App-V client
    After a clean uninstall and removal of remnants of the client, reinstall the client again and apply the latest hotfix available (Hotfix 2 for SP2 at a minimum).

  • How to browse for a folder with ABAP WEB DYNPRO

    Hi,
    I want to browse for a folder in my local file system with ABAP
    WEB DYNPRO. I am looking for a functionality which the function module
    TMP_GUI_BROWSE_FOR_FOLDER gives.
    Regards,
    Vinay

    HI Karl
    Good evening, I am Maruti from London. I would like to paractise ABAP WebDynpro.I am not sure which Vesrion of SAP R/3 supports for ABAP WebDynpro applications. Can you please suggest me .
    Thank you
    Maruti
    [email protected]

  • Folder path for developing custom UI in SAP OEE

    Hi,
    recently I was developing in a scenario where I need to add a custom UI in OEE Dashboard. For that I followed the SAP How to guide for Custom UI. As per the guide I developed the view.js file controller.js file and then set them in activity configuration. It was stated in the how to doc that we have to put upto the name of the view page not the extension. Interestingly I found one thing here.
    OEE always expects a folder path for that view file is such a way http://<host>:<port>/<Project name>/Web/WebContent/customActivity/<View page>.
    Main problem to use that is, we can't add any specific folder in between any of the folder and even we can't change the name of the folder. I have tried with "customactivity", it didn't work.
    I think this kind of limitation anyone can't expect while developing. I just post this here to explore that if I am doing anything wrong or that is a issue. Another point is in the how to doc it is not mentioned anywhere.
    Thanks and Regards,
    Suman

    Hi All,
    This is for everyone's update.
    I have raised this point to the SAP, they have sent the confirmation that they have wrote their logic in such a way, so we have to mention the same path while developing any custom UI for SAP OEE. But as per my understanding it is kind of limitation they are giving.
    So the standard path to keep the custom UI code for any SAP OEE Custom UI is :
    http://<host>:<port>/<Project name>/Web/WebContent/customActivity/<View page>
    Regards,
    Suman

Maybe you are looking for

  • How to have multiple default dimension members

    Hi There I am using AS2008, when editing a role, under the dimension data tab, under advanced, you can define a default dimension member. However i need my default dimension member to be members, i have tried using a attribute set to true for many me

  • Exchange Rate Differences for Alternative Currency

    F110 payment run for invoices posted in foreign currency creates automatic postings to exchange rate difference (realized gain or loss) accounts linked to KDW. What we are trying to do is to use another set of GL accounts to be posted automatically a

  • Default Internal order and cost center

    Hi Experts, i am uploading one file into sap and here i am giving GL accounts cost centers and WBS elements. once i have done with upload.when i am checking in BSEG its showing one internal order and one default cost center with internal order. i can

  • SMD Tool. No change pointers log on table CDHDR nor CDPOS.

    Hi everyone. I'm trying to use the SMD tool. I've created my Message Type, and my Change Document Object(Tcode SCDO). Priorly, I've tested the ALE Layer configuration, by sending iDocs of my message type directly with the MASTER_IDOC_DISTRIBUTE Funct

  • PC00_M40_TERM

    Gurus I am executing termination work bench PC00_M40_CALC and getting below error Pay scale grpg for allowances for 11005198 is not defined on 00.00.0000 Message no. HRPADIN01084 Diagnosis Pay scale grpg for allowances for the employee not defined on