File browsing dialog

hi,
i have an app that i want to extend with a functionality for the user to browse for a file. could someone please explain/direct me how to code this.
many thanks,
marcus

JFileChooser

Similar Messages

  • Default location for file browse dialog

    OK, I know this is not solely an APEX issue, but is there a way that one can specify a starting location when invoking the file browse dialog?

    I don't think there is a possibility to modify the file browse item. It is a security issue.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • 4.0EA3 : Unable to access mapped drives (Windows) in file browser dialogs

    All File Browser dialogs only allow access to by local C: (hard disk) and D: (DVD) drives. It is not possible any more to access mapped drives (which are referencing UNC paths to our file server) - i.e. Network drives.
    I have tried the following accesses to the File Browser:
    File -> Open    : Does not work
    File -> Data Modeler -> Open : does not work
    Tools -> Preferences -> Environment -> Log -> Log Directory -> Browse : does not work
    This worked/works fine in SqlDev 3.2.2
    I tried to rule out connection/authentication problems to our SAN (the network drives are fully accessible from Windows Explorer and even JDeveloper 11.1.2.2.0) - I created a drive mapping to a share on my local hard disk. Can't see this mapping from within SqlDev either
    Problem occurs on Win7 64-bit
    Looking forward to Oracle feedback or to see if other users find the same issue
    Alan

    https://drive.google.com/file/d/0B2daepPy6k7nbGl4d2xobFJFVTg/edit?usp=sharing
    Hi Jeff
    Many thanks for your reply.
    No - the location drop-down only shows my C: (Hard Drive) and D: (DVD Drive).
    With further playing, I did find that if I qualify a script on a network file share with the full UNC path, it successfully opens the script.
    The problem is that I cannot navigate to locations on mapped drives.
    Having successfully opened a sample script, there is now a shortcut to the folder/directory of my shared scripts in the left pane of the open (file browser) dialog box. Its a good workaround.
    I have shared a screenshot on my Google Drive (this forum does not allow insert of images or attachments ?)
    Alan

  • Feature Request -  use native Windows file browsing dialog

    I'm not sure if this has been brought up before. I wasn't able to find anything with a search in the forum, so I'll post it here.
    An enhancement request for SQL Developer would be to have it use the native file browsing dialogs in Windows. I'm using Windows 7, and it would be nice to have a native Windows dialog pop up when I go to open or save a file, rather than the ugly (I think) default one, which must be a generic Java file browsing construct. The native dialog would allow it to include all the links to Windows 7 libraries, favorites, and other things like Dropbox, Google Drive, etc. if those were installed.
    I'd be curious to hear what others think about this idea.
    Thanks,
    Brian

    At the risk of starting a Windows/Linux/Mac flame war, or pissing off Java developers, I'm not really into the whole Java write once, run anywhere approach. Particularly when it comes to look and feel. There are merits to cross-platform development when it comes to application functionality, but look and feel is a bit trickier. Windows has specific features that Windows users are used to seeing and using. Mac the same. Linux the same. I think this is especially true when it comes to dealing with the file system. So applications should adjust to the native environment nicely and not introduce elements that don't "fit in". Just MY $0.02. :-)
    I'm not a Java developer, but IvanG pointed out that it SHOULD be pretty easy to invoke a native Windows dialog box from Java. That would be my choice.
    Thanks!

  • Export data File Browse dialog box does not appear

    I am trying to export data to CSV and when I click on Browse to locate proper directory, nothing happens (the dialog doesn't show up).
    I normally right-click on any cell in "Result" TAB, choose Export->CSV.
    On the same note CSV format is a workaround to get to Excel. Is there an extension or option to save directly in Excel format. This would avoid having the client to open the file in Excel and then do a Save As with the proper XLS format instead of CSV.
    Using Win XP client connecting to 10.2 database. Using latest SQL Developer version (downloaded on Friday may 5th version 1.0.0.15.27).
    Thanks
    Robert
    Message was edited by:
    user509017

    I haven't seen the browse button problem that you describe. Is it still occurring? On all exports? There have been issues with export rerunning the query a few times which makes the application appear to lock up. Could that be the issue?
    There is an excel add-in. I assume that it isn't included for licensing issues, but it comes from one of the core developers of this app.
    esdev.sf.net.
    Regards,
    Eric

  • File browser dialog box like app.browseForDoc()

    Dear all,
    Is it possible to write script in LC Designer ES2 such that a file dialog box is presented to the form filler to choose a file he wants?
    It should be similar to app.browseForDoc() (which I can't use in Designer ??security issue)
    or xfa.host.importData() which will prompt the user to provide a location and file name.
    All I want is to get the path and filename information for the chosen file.
    Rgds.

    Dear Paul,
    In my case, the form is originally defined an ODBC connection with a specified Excel file.
    The file name and path will then be held or hardcoded in the connectString under xfa.sourceSet.source.
    Sadly you told me that it can't modified by script as it is protected, So I clone a new dataconnection
    to modify the connectString such that I can point to another Excel file and work on that new connection..
    It works so I moved further step to try if I can open a file dialog to let the form filler to choose his own file.
    Is there any other method I can try?
    Rgds.

  • File Browser doesn't display when Flex page is opened via showModalDialog IE9 on 64-bit system

    From a html page, we open a flex page using showModalDialog.
    Once flex page is launched, we have a button to open windows file browser.
    When you click on the button, windows file browser opens as expected.
    However, if you use IE 9 on 64-bit machines, windows file browser does not open and IE crashes.
    If you use other versions and even IE9 on 32-bit system, file browser dialog shows up correctly.
    When examining in flex code, the call to FileReference object's browse() returns true so I'm assuming Flex code is thinking browse window is opened.
    We do not want to use showModalessDialog, is there any other soltuions to this issue?

    From a html page, we open a flex page using showModalDialog.
    Once flex page is launched, we have a button to open windows file browser.
    When you click on the button, windows file browser opens as expected.
    However, if you use IE 9 on 64-bit machines, windows file browser does not open and IE crashes.
    If you use other versions and even IE9 on 32-bit system, file browser dialog shows up correctly.
    When examining in flex code, the call to FileReference object's browse() returns true so I'm assuming Flex code is thinking browse window is opened.
    We do not want to use showModalessDialog, is there any other soltuions to this issue?

  • Validating File Browse path is valid

    I'm sure some other people ran into this same problem...
    I need a way to validate the file entered into the File Browse item is a valid file path. I've created an obvious "not null" validation so the item has a value when the page is submitted. I also created a validation to check the size of the file if a path was given. I noticed if there is something resembling a file path but the file name is not correct APEX will upload an empty blob.
    DECLARE
      v_file_id APEX_APPLICATION_FILES.ID%TYPE;
      v_file_filename APEX_APPLICATION_FILES.FILENAME%TYPE;
      v_file_doc_size APEX_APPLICATION_FILES.DOC_SIZE%TYPE;
      v_file_blob_content APEX_APPLICATION_FILES.BLOB_CONTENT%TYPE;
      v_file_mime_type APEX_APPLICATION_FILES.MIME_TYPE%TYPE;
    BEGIN
      SELECT ID,FILENAME,DOC_SIZE,BLOB_CONTENT,MIME_TYPE
        INTO v_file_id, v_file_filename, v_file_doc_size, v_file_blob_content, v_file_mime_type
        FROM (
          SELECT ID,FILENAME,DOC_SIZE,BLOB_CONTENT,MIME_TYPE
            FROM APEX_APPLICATION_FILES
           WHERE UPDATED_BY = UPPER(:APP_USER)
          ORDER BY UPDATED_ON DESC
       WHERE ROWNUM = 1;
       IF v_file_doc_size = 0 THEN
         DELETE FROM APEX_APPLICATION_FILES WHERE ID = v_file_id;
         RETURN FALSE;
       END IF;
       RETURN TRUE; 
    END;Now the problem is when a user enters some random text like "abc.pdf" into the file browse item. Is there a way to validate that this doesn't happen. In our current application it appears that the page is never submitted when a button is clicked. I put up an application on apex.oracle.com and I receive a javascript error when I try to submit a page with a relative file path like "abc.pdf".
    If I can't create a validation is there a way to make the file browse item read only so they have to use the button and can't type the file path?
    Thanks!
    Jonathan
    APEX 4.0

    Hi,
    Tried it, here is what happened
    IE 8 in Browser  Mode : IE 8, Document Mode: IE8 Standards
    - I am unable to enter any text in the item
    IE 8 in  Browser  Mode : IE 8 Compatibilty, Document Mode : IE7  Standards
    - I am unable to enter any text in the item
    IE 8 in Browser  Mode : IE 7 Compatibilty, Document Mode : IE7  Standards
    - I am unable to enter any text in the item
    FF 3.5.7
    - As soon as I key in text it automatically opens the File Browser Dialog box.
    So, there is some issue with either IE7 or something else.
    If someone from Oracel does not look at this thread then I suggest you post another query with the words bug? in it.
    Regards,

  • How to set "Files of type" when using a "File Browse" item.

    Apex 4.0.2
    Internet Explorer 7 +
    I have a "File Browse" item on a page and need to limit the types of files display to just "text (.txt)" files. How can this be done? Currently, the "Files of type" list shows "All File (*.*)", "Pictures (*.gif,*.png)", and HTML (*.htm,*.html)". In the best case, I would like to not have the "Files of type" list and have the user just limited to text files. However, adding Text files (*.txt)" to the "Files of type" list is ok.
    thanks,
    William

    Thought i'd do a bit of research after seeing Scotts wonderful ideas.
    So it turns out, IE made the file item read only from version 8, for security reasons. Read more: http://blogs.msdn.com/b/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
    File Upload Control
    Historically, the HTML File Upload Control (<input type=file>) has been the source of a significant number of information disclosure vulnerabilities. To resolve these issues, two changes were made to the behavior of the control.
    To block attacks that rely on “stealing” keystrokes to surreptitiously trick the user into typing a local file path into the control, the File Path edit box is now read-only. The user must explicitly select a file for upload using the File Browse dialog.
    Additionally, the “Include local directory path when uploading files” URLAction has been set to "Disable" for the Internet Zone. This change prevents leakage of potentially sensitive local file-system information to the Internet. For instance, rather than submitting the full path C:\users\ericlaw\documents\secret\image.png, Internet Explorer 8 will now submit only the filename image.png.To resetting the actual items, suggestions I found were to replace the actual item. So instead of using $s, I just replace the element, with the existing element, causing it to re-initialise.
    var htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function fileCheck(el){
        if(el.value){
            var validFile = false;
            var validExtensions = ["csv"];
            var filename = el.value;
            var fileExtIndex = filename.lastIndexOf(".");
            var fileExt = filename.substring(fileExtIndex+1, filename.length);
            for(i = 0; i < validExtensions.length; i++){
                if(validExtensions[i] == fileExt){
                    validFile = true;
                    break;
            if ( !validFile || fileExtIndex == -1) {
                alert("Invalid Extension. Permitted files must end with: " + validExtensions.toString());
                var htmlContents = el.outerHTML || new XMLSerializer().serializeToString(el);
                $('#P16_BINARY').replaceWith(htmlContents);
    }(obviously, replacing what you need to, to suit your page - i prefer scotts idea of passing in supported file types in the function, so would just pass in an array instead; but this is just for demonstration)
    with an onchange="checkFile(this)" on the element attributes.
    On a slightly un-related note, I found out IE doesn't support the wonderful indexOf function on arrays, that checks for the existence of the value in an array. Sucks.
    Edited by: trent
    Ah well, jQuery is there, maybe i should use that for searching arrays in the future.
    http://api.jquery.com/jQuery.inArray/
    Edited by: trent
    Forgot a demo link, for csv files: http://apex.oracle.com/pls/apex/f?p=45448:16
    Edited by: trent
    Modify function. Didn't work in Firefox

  • How to write binary data to browser - File Save dialog

    Hi,
    problem:
    i have a working webservice and i get binary data from that webservice.
    my dynpro java  already works and i have byte[] b which has my binary result.
    what i want:
    when the user clicks on the button, the action onActionGetResult() is executed and inside this method, the byteArray b exists. what can i do, to say the dynpro application that it should  send the binary data direct to the browser, so that the "File Save Dialog" appears and the user can save the file to the harddisk
    any ideas?

    I've found the solution:
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(
    res.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal()),
    res.getResourceName());
    window.show();
    this worked for me

  • File Open/Browse dialog?

    Is there any way to bring up (and get info from) the standard
    Windows File Open/Browse dialog in CF?
    Thanks!

    if i'm understanding you correctly, <input type="file"
    name="foo" /> ... but this isn't CF. it's straight HTML.

  • Choosing a file using a file browser in a dialog

    Hi,
    I'm writing a script and i want it to have a "browse" button so i can choose e file in a file browser.
    I checked out InDesign's dialog elements and i couldn't find it.
    any ideas?

    Hey!
    Maybe something like this:
    var myFile = File.openDialog ("Select file",undefined,false);
    if(myFile != null)
        alert ("File selected: " + myFile.fsName)
    else
        alert ("No files selected!");
    Hope that helps.
    tomaxxi
    http://indisnip.wordpress.com/

  • To display non US-ASCII filename in file download dialog - Help Needed

    Hi,
    Our application supports to upload a file with name in chinese/japanese language. When user tries to download filedownload dialog box is appearing with the filename as junk characters.
    How to solve this issue to display the filename as uploaded.
    Thanks in advance
    ~kans

    bsampieri, issue is in display of the file name in
    file download dialog.
    ~kansI understood that, but my thought was that the HTTP headers content type containing a charset of UTF-8 might help. I don't know for sure, but otherwise, I don't know how to get the browser to otherwise not assume ASCII.

  • File Open Dialog Box  on Button Click

    Hi
    I am devloping some webpages using JSF and RichFaces..
    I would like to appear File open Dialog box to choose single file and multiple files and another Folder chooser dialog box to choose the folder content..
    Both the operation should be performed while choosing the Button Choose File and Choose Folder...
    I have already tried Input type = file and aphace tomohawk..
    But i all the components are coming with text box and browse button..
    I dont need that. I need to open the dialog box once i clilck my choose file r folder button and it should work browser indepent.....

    HTML doesn't provide you the possibility to select multiple files or select folders at a single browse. Thus JSF can't do any much for you. Best what you can do is to write a signed applet or web start application which does the task. The Mojarra Scales component library has a ready-to-use component which embeds an applet which does that task. Check [https://scales.dev.java.net/multiFileUpload.html].

  • File open dialog box broken in all apps! ( 10.5.6/7

    Hi, I've got a very odd problem that Apple phone support seem to be unable to solve.
    Basically, every file open dialog box system wide is broken, from file->open in textedit to the browse button on websites for uploading files.
    When trying to display this finder panel, it beachballs for ten seconds then gives me a grey area where the usual finder browser usually resides and the open / cancel buttons at the bottom of the panel.
    I've repaired permissions which had no effect.
    The finder works perfectly other than it's little file open dialog which other applications use...
    Updating to 10.5.7 did nothing to fix the issue.
    Does anybody have any idea how to resolve this?
    Thanks!
    chris.

    V.K. had you create another user to eliminate the possibility that it is a preference file causing the problem. It was reported the problem remained with another user, so the problem is system wide, not with a single user's preferences.
    The Archive & Install is relatively painless. It only replaces the system and leaves everything else untouched. What is replaced is saved in a new folder it creates named Previous System, in case there is something there you might want to bring back (most often 3rd party files, but I have never needed anything from the Previous System folder).
    The only hassle with the A & I is resetting preferences. If you check the option during the A & I to retain user settings, there is usually not very much that needs resetting.

Maybe you are looking for

  • With holding tax

    Hi, If  i  select With holding  tab  when   entering Down payment request,Down payment and invoice for vendor,  i  am getting error message as  Withholding Tax information missing from line item Could you advise me where i made wrong cogfiguration fo

  • Dbms_space.auto_space_advisor_job_proc; and performance

    oracle 10.2.0.3 redhat 4.5 RAC environment.. 3 nodes i am having alot of problems direct path sql loading data, so I ran an AWR to look at the waits and my top waits are library cache lock row cache locks each has over 10,000 seconds of wait in the l

  • I've tried to complete this album several times, but it won't let me?

    I've filled out my payment info and everything. But no matter how many times I've tried to complete the album, nothing ever happens.

  • Free buffer waits

    We are seeing some free buffer waits contention and I wanted to get some input from the forum participants if you have time to address it. It is on an HP-UX 11.31 Itanium system running 11.2.0.3 of Oracle. This is a datawarehouse staging database and

  • How to find users who are inactive.

    Hi I want to find users who left the company. I ran program rsusr200 in se38 but not understanding which option will clearly give me the invalid users. Also i had a doubt. Does users with password deactivated that the user left the company. Thanks in