Open button not visible in download file dialog box

Hi,
I am using weblogic portal 10.2 and written following code in my page flow controller but open button is not available on file download dialog box. Whereas if i try the same approach in jsp it show correctly. Any quick would be highly appreciated:
response.setHeader("Content-Disposition", "attachment; filename=" + materialid+".pdf");
                    getResponse().setContentType("APPLICATION/OCTET-STREAM");
                    DataOutput dataOutput = new DataOutputStream(getResponse().getOutputStream());
                    getResponse().setContentLength(bufferExtractedFromXML.length);
                    for(int i = 0; i < bufferExtractedFromXML.length; i++)
                         dataOutput.writeByte(bufferExtractedFromXML);

How is the pageflow being called? (i.e. are you calling it as part of a Portal or directly). Also using a browser tool check the headers you get.
And really if you sending a PDF file then you mime type should not be Application-OctetStream.

Similar Messages

  • Home view major bug: Home view navigation not available in Common File Dialog Box (i.e. Java, Adobe Photoshop etc)

    Homeview major bug: Homeview navigation not available in Common File Dialog Box (i.e. Java, Adobe Photoshop etc)
    Hi
    All though provisioning somewhat more flexsible and pointing forward ... things are starting to go wrong here ... i.e. pointing to a very potential lack of success introducing users to the new Home namespace/concept ...
    0) Situation if you do not fix 1 + 2:
    You can not release the Homeview feature like this - without fixing 1 + 2.
    If not 1 +2 is fixed you might just as well leave the release of the Homeview feature out of the roadmap for Windows 10. I.e. not ready for use ... or promotion in the UI
    1) How come Homeview has not been included - like other namespaces i.e. Libraries into the Common File Dialog Box?
    How can such a trivial thing to do be missed? I.e. like forgetting to include Homeview into Explorer (would be absurd).
    If not included into the Places Bar of the Common File Dialog Box ... Home View will be unusable - because some very visible applications like Java, Photoshop will not be able to navigate that space easily at all.
    2) Finally, please fix obscure situation in the UI namespace in Explorer
    Please fix obscures like having Home view, Favorites and Libraries (side-by-side complexity and confusion obscuring usability) - all similar concepts but on a different evolutionary step. I.e. have Favorites and Libraries
    hidden - and add i.e. view control like to small buttons whatever to unhide/show the legacy concepts.
    In any case - Home view already seem to migrate/move links from Favorites to the Homeview container.
    Additionally, Home view should migrate links from Libraries to Home view - and provide similar and better functionality.
    Thus going the evolutionary way from Libraries > Favorites > Home - with the later concept of Home providing links to the cloud. Even better, sync relation ships could then later (extended features for Home) be set up among the pins - i.e. concerning
    cloud/network syncing.
    The UI should always reflect the 1 essentional concept - and not under the hood technologies or different evolutionary stages of the same basic/essential concept (technology/implementation free - abstract: "Home with pining of user data space"
    - was previously favorites or libraries (thus obsoleted)). Now the name for that concept is Home. Have it include the technology that replaces Libraries too - i.e. categorization/nesting ... and some whitespace inbetween the nesting (alike some whitespace
    already there inbetween the namespaces in the Explorer UI ... provides easy "modular" reading)

    Hi,
    Please clarify the following:
    * "X: is a network drive, but it's actually a network drive on my machine." - Is "X" a mapped drive to one of your shared folder on network?
    * What is the project directory structure with respect to WEB-INF/web.xml? Are you able to see the three pages (from web & pages folder) in NitroX Editor?
    * Does the modified content appear in "Design view" of index.jsp upon restarting NitroX?
    Ex:
    - modify one of the pages in "web" folder > save the file (alert appears)
    - restart NitroX, does index.jsp display the modified content of included page?
    * If possible please send the test case project which exhibits the behavior to [email protected]
    Thanks,
    M7 Support

  • When Firefox is opened a download file dialog box pops up

    When I open Firefox, a download file prompt appears for a file that I previously downloaded. I'm using Windows 8 x64 on a brand new laptop. (Not the computer I'm posting from)
    I've tried the following:
    Set Firefox to use the default homepage. There are no secondary pages.
    Set the default homepage back to default. (The default homepage does come up)
    Tried launching Firefox directly from c:\program files (x86)\mozilla\Firefox.
    Clearing the downloads list.
    Deleting all files in the Downloads folder.
    Searching the HKLM\software\mozilla registry key for the filename.
    Searching the about:config section for the filename.
    Deleting the app data folder from app data\local.

    Try clearing the Download History.
    https://support.mozilla.org/en-US/kb/remove-recent-browsing-search-and-download-history

  • Webutil client_get_file_name does not display the select file dialog box

    hi all,
    i'm using oracle forms :
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
    Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE     10.1.0.4.0     Production
    my question is:
    why can't i get the client_get_file_name dialog to open when i compiled the form on unix but it works fine when compiled on my pc. I have matched the webutils' setting my pc = my unix server.
    here's both the java console messages:
    ###JAVA CONSOLE messages when running standalone on my pc (winxp): NOTE:it works fine###
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.28-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Admin
    Proxy Configuration: no proxy
    JAR cache enabled
    Location: C:\Documents and Settings\Admin\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://xxxx:9999/forms/java/frmall_jinit.jar from JAR cache
    Loading http://xxxx:9999/forms/java/frmwebutil.jar from JAR cache
    RegisterWebUtil - Loading WebUtil Version 10.1.2.0
    Loading http://xxxx:9999/forms/java/jacob.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    2007-Mar-22 15:08:27.750 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:08:27.765 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:08:27.765 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:08:27.781 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:08:27.781 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:08:27.843 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:08:27.843 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:08:27.859 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:08:28.00 WUI[getProperty()] Getting property WUC_BEAN_VERSION
    2007-Mar-22 15:08:28.15 WUI[setProperty()] Setting property WUC_SRV_LOGGING to 0
    2007-Mar-22 15:08:28.15 WUI[setProperty()] Setting property WUC_SRV_LOGGING to 0
    2007-Mar-22 15:08:28.15 WUI[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.ffisamp.dll
    2007-Mar-22 15:08:28.15 WUI[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2007-Mar-22 15:08:28.15 WUI[loadSettings()] Local properties file loaded
    2007-Mar-22 15:08:28.31 WUT[setProperty()] Setting property WUC_SRV_LOGGING to 0
    2007-Mar-22 15:08:28.31 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.jacob.dll
    2007-Mar-22 15:08:28.31 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2007-Mar-22 15:08:28.31 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.JNIsharedstubs.dll
    2007-Mar-22 15:08:28.31 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2007-Mar-22 15:08:28.31 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.d2kwut60.dll
    2007-Mar-22 15:08:28.31 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2007-Mar-22 15:08:28.31 WUB[setProperty()] Setting property WUC_SRV_LOGGING to 0
    2007-Mar-22 15:08:28.31 WUL[setProperty()] Setting property WUC_SRV_LOGGING to 0
    2007-Mar-22 15:08:28.31 WUO[setProperty()] Setting property WUC_SRV_LOGGING to 0
    2007-Mar-22 15:08:28.31 WUS[setProperty()] Setting property WUC_SRV_LOGGING to 0
    2007-Mar-22 15:08:28.31 WUH[setProperty()] Setting property WUC_SRV_LOGGING to 0
    2007-Mar-22 15:08:28.31 WUF[setProperty()] Setting property WUC_SRV_LOGGING to 0
    2007-Mar-22 15:08:38.171 WUF[setProperty()] Setting property WUF_GFN_DIRNAME to C:\
    2007-Mar-22 15:08:38.171 WUF[setProperty()] Setting property WUF_FILENAME to false
    2007-Mar-22 15:08:38.171 WUF[setProperty()] Setting property WUF_FILTER to *.*
    2007-Mar-22 15:08:38.171 WUF[setProperty()] Setting property WUF_GFN_MESSAGE to false
    2007-Mar-22 15:08:38.171 WUF[setProperty()] Setting property WUF_GFN_MULTISELECT to FALSE
    2007-Mar-22 15:08:38.171 WUF[getProperty()] Getting property WUF_GFN_OPENFILE
    2007-Mar-22 15:09:22.437 WUT[getProperty()] Getting property WUT_MAX_BYTES
    2007-Mar-22 15:09:22.437 WUF[setProperty()] Setting property WUF_FILENAME to C:\firdaus\K-I-S-07-v6.0.2.614.zip
    2007-Mar-22 15:09:22.437 WUF[setProperty()] Setting property WUF_FILE_ATTRIBUTE to 2
    2007-Mar-22 15:09:22.437 WUF[getProperty()] Getting property WUF_FILE_ATTRIBUTE
    2007-Mar-22 15:09:22.437 WUF[setProperty()] Setting property WUF_FILENAME to C:\firdaus\K-I-S-07-v6.0.2.614.zip
    2007-Mar-22 15:09:22.437 WUF[setProperty()] Setting property WUF_FILE_ATTRIBUTE to 4
    2007-Mar-22 15:09:22.437 WUF[getProperty()] Getting property WUF_FILE_ATTRIBUTE
    2007-Mar-22 15:09:22.453 WUT[getProperty()] Getting property WUT_STATUS
    2007-Mar-22 15:09:22.453 WUT[setProperty()] Setting property WUT_FILE_INFO to C:\firdaus\K-I-S-07-v6.0.2.614.zip|0|S|Y|Muatnaik fail ke C:\firdaus\fmb\admin\K-I-S-07-v6.0.2.614.zip untuk simpanan.|Sila Tunggu...
    2007-Mar-22 15:09:22.453 WUT[getProperty()] Getting property WUT_FILE_INFO
    ##Note: i close the web browser & java console. and opened a new web browser##
    ###JAVA CONSOLE messages when running IAS 10g on Unix###
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.28-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Admin
    Proxy Configuration: no proxy
    JAR cache enabled
    Location: C:\Documents and Settings\Admin\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://XXX.XXX.XXX.XXX:9999/forms/java/frmwebutil.jar from JAR cache
    Loading http://XXX.XXX.XXX.XXX:9999/forms/java/frmall_jinit.jar from JAR cache
    RegisterWebUtil - Loading WebUtil Version 10.1.2.0
    Loading http://XXX.XXX.XXX.XXX:9999/forms/java/jacob.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.2
    2007-Mar-22 15:12:43.984 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:12:44.15 WUI[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
    2007-Mar-22 15:12:44.15 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:12:44.31 WUF[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
    2007-Mar-22 15:12:44.31 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:12:44.31 WUH[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
    2007-Mar-22 15:12:44.46 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:12:44.46 WUS[SessionFunctions.init()] Dispatcher Monitoring interval set to 5
    2007-Mar-22 15:12:44.46 WUS[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
    2007-Mar-22 15:12:44.62 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:12:44.62 WUT[SessionFunctions.init()] Max Transfer chunk size set to 16384
    2007-Mar-22 15:12:44.62 WUT[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
    2007-Mar-22 15:12:44.125 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:12:44.140 WUO[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
    2007-Mar-22 15:12:44.140 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:12:44.140 WUL[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
    2007-Mar-22 15:12:44.140 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2007-Mar-22 15:12:44.156 WUB[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
    2007-Mar-22 15:12:44.500 WUI[getProperty()] Getting property WUC_BEAN_VERSION
    2007-Mar-22 15:12:44.500 WUI[getProperty()] Value of WUC_BEAN_VERSION=10.1.2.0
    2007-Mar-22 15:12:44.687 WUI[setProperty()] Setting property WUC_SRV_LOGGING to 1
    2007-Mar-22 15:12:44.687 WUI[setProperty()] Setting property WUC_SRV_LOGGING to 1
    2007-Mar-22 15:12:44.687 WUI[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.ffisamp.dll
    2007-Mar-22 15:12:44.687 WUI[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2007-Mar-22 15:12:44.687 WUI[loadSettings()] Local properties file loaded
    2007-Mar-22 15:12:44.687 WUI[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2007-Mar-22 15:12:44.890 WUT[setProperty()] Setting property WUC_SRV_LOGGING to 1
    2007-Mar-22 15:12:44.890 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.jacob.dll
    2007-Mar-22 15:12:44.890 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2007-Mar-22 15:12:44.890 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2007-Mar-22 15:12:45.93 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.JNIsharedstubs.dll
    2007-Mar-22 15:12:45.93 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2007-Mar-22 15:12:45.93 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2007-Mar-22 15:12:45.296 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.d2kwut60.dll
    2007-Mar-22 15:12:45.296 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2007-Mar-22 15:12:45.296 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2007-Mar-22 15:12:45.500 WUB[setProperty()] Setting property WUC_SRV_LOGGING to 1
    2007-Mar-22 15:12:45.500 WUL[setProperty()] Setting property WUC_SRV_LOGGING to 1
    2007-Mar-22 15:12:45.500 WUO[setProperty()] Setting property WUC_SRV_LOGGING to 1
    2007-Mar-22 15:12:45.500 WUS[setProperty()] Setting property WUC_SRV_LOGGING to 1
    2007-Mar-22 15:12:45.500 WUH[setProperty()] Setting property WUC_SRV_LOGGING to 1
    2007-Mar-22 15:12:45.500 WUF[setProperty()] Setting property WUC_SRV_LOGGING to 1
    2007-Mar-22 15:13:12.890 WUF[setProperty()] Setting property WUF_GFN_DIRNAME to C:\
    2007-Mar-22 15:13:12.890 WUF[setProperty()] Setting property WUF_FILENAME to false
    2007-Mar-22 15:13:12.890 WUF[setProperty()] Setting property WUF_FILTER to false
    2007-Mar-22 15:13:12.890 WUF[setProperty()] Setting property WUF_GFN_MESSAGE to false
    2007-Mar-22 15:13:12.890 WUF[setProperty()] Setting property WUF_GFN_MULTISELECT to FALSE
    ###Note: No error messages. it just hangs (nothing happens), and i could not do anything else on the form or even close it. i have to close the web browser.
    sorry if my question is long.
    Message was edited by:
    wajatimur

    I had logged Bug 5703183 and this seems similar to that.
    Solnt was
    Copy frmwebutil.jar from a patched Oracle DS installation where Webutil 10.1.2.x exist to the IAS
    Also clear the jinitator/javaplugin cache
    Rajesh Alex

  • How do i add a download action for dxf files. firefox assumes its a text file and just opens it with no download action dialog box

    I want to add a download action for dxf files so they open in Autodesk trueview. The steps described here (http://support.mozilla.com/en-US/kb/Managing%20file%20types#w_adding-download-actions) say to click on a link for the filetype you want to add an action to but firefox thinks the dxf is a text file and just opens it in a new tab with no download action dialog box.

    Use the right-click context menu and choose "Save Link As" or hold down the alt key and left-click the link.

  • Video download from SD card 2 iPad 2 interrupted, file corrupted.  Cannot find file to delete.  Does not appear in Photos, or is not visible using Windows File Manager.  Consumed 2.5G of space!  Can anyone help

    Video download from SD card to iPad 2 interrupted,  corrupted.  Cannot find file to delete.  Does not appear in Photos, or is not visible using Windows File Manager.  Consumed 2.5G of space!  Can anyone help?

    Video download from SD card to iPad 2 interrupted,  corrupted.  Cannot find file to delete.  Does not appear in Photos, or is not visible using Windows File Manager.  Consumed 2.5G of space!  Can anyone help?

  • How can open File Dialoge Box in Oracle9i

    can any one tell me how can i open file dialoge box in oracle 9i i am using webutil but when i run this code.. there is an exception during runtime.. not compile time.. so plz tell me how can i open file dialoge box.. thx..
         declare
              file_name varchar2(100);
         begin
              file_name := client_get_file_name(FILE_FILTER=>'TEXT FILES (*.txt|*.txt|');
         end;

    Please do not post the same topic in multiple forums. The
    only thing I can suggest is when they click on the button to
    download, you take flash out of full screen while they download the
    video, you can use fileReference to control and monitor the
    download. Use a listener object to monitor when download is
    complete, then set flash back to full screen.
    How are you scripting the full screen?

  • I am trying to open CR2 files from a Cannon EOS 1DX camera in Photoshop CS6 and I have already updated the Camera Raw Plug in but Photoshop is still giving me the cannot open files dialog box? Help?

    I am trying to open CR2 files from a Cannon EOS 1DX camera in Photoshop CS6 and I have already updated the Camera Raw Plug in but Photoshop is still giving me the cannot open files dialog box? Help?

    Canon 1DX support was added to ACR in version 6.7, 7.1.  An updated CS6 should be at level ACR 8.6.  If your ACR is not at level 8.6 try using CS6 menu Help>Updates.  If that does not install ACR 8.6 try downloading the ACR and DNG 8.6 converter and see if ACR 8.6 will install into your CS6.
    Adobe - Adobe Camera Raw and DNG Converter : For Windows
    Adobe - Adobe Camera Raw and DNG Converter : For Macintosh

  • How to displays the standard open file dialog box in Oracle Apps Server

    Hi,
    I am having a form, where i am opening a file and putting that file content in a text box.
    This is my code written in WHEN-BUTTON-PRESSED trigger:
    declare
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(8000);
    filename VARCHAR2(30);
    BEGIN
    filename:=GET_FILE_NAME('d:\Rajesh\Practice', File_Filter=>'Text Files (*.txt)|*.txt|',select_file=>false);
    in_file := Text_IO.Fopen(filename, 'r');
    LOOP
    Text_IO.Get_Line(in_file, linebuf);
    :text_item5:=substr(:text_item5||linebuf||chr(10),1,5000);
    END LOOP;
    EXCEPTION
    WHEN no_data_found THEN
    Text_IO.Put_Line('Closing the file...');
    Text_IO.Fclose(in_file);
    END;
    I have posted this in ORacle Apps Server.Where i was not able to get the Open Dialoq Box.It is giving an error as
    "FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-302000.".
    I think the GET_FILE_NAME function is not supported in the Apps Server.
    Is there any alternative solution for getting the OPEN DIALOG WINDOW in Oracle Apps Server?
    Pls let me know.

    Hi!
    waldemar.hersacher wrote:
    "It seems that the VIs called by the clients are running in the user interface thread.
    A call to the file dialog box will call a modal system dialog. So LV can't go on executing VIs in the user interface thread."
    Are you sure? I think, that File Dialog, called by LabVIEW File Dialog from Advanced File Functions Palette doesn't blocking any cycles in subVI, which running in UI Thread. Look in my old example (that was prepared for other topic, but may be good for this topic too).
    2 linus:
    I think, you must a little bit reorganize you application for to do this. You must put your File Dialog into separated cycle. This cycle, of course, will be blocked when File Dialog appear on the screen. But other cy
    cle, which responsible for visualization will run continuosly at the same time...
    Attachments:
    no_block_with_file_open_dialog.zip ‏42 KB

  • Open a File Dialog Box to browse through image files

    Hi all
    I need to develop a code to open a File Dialog Box to browse through Image Files in Oracle 10g.
    Once the Image File is selected i need to save the file in a Table Column in the Backend Table.
    Please help me.
    Thanks
    Nakul Venkatraman

    Hi
    Thanks for your prompt response on this.
    I came across a Sample Form File which would allow the User to browse through files from local PC.
    Following is the code :
    declare
    dirname varchar2(255);
    v_filename varchar2(255);
    begin
         message('1');
    tool_env.getvar('E:\', dirname);
    message('2');
    dirname := dirname || '\project';
    message('3');
    v_filename := get_file_name(dirname,NULL,
    'All Files (*.*)|*.*|' ||
    'JPEG Files (*.jpg)|*.jpg|' ||
    'Bitmap Files (*.bmp)|*.bmp|' ||
    'TIFF Files (*.tif)|*.tif|' ||
    'CompuServe Files (*.gif)|*.gif|' ||
    'PC Paintbrush Files (*.pcx)|*.pcx|' );
    message('4');
    if v_filename is not null then
    read_image_file(v_filename,'ANY','pp_foto.foto');
    end if;
    end;
    The code is written inside WHEN-BUTTON-PRESSED Trigger.
    When i run the form it is not opening the dialog box.
    Please help.
    Regards
    Nakul

  • How to trigger an "open file" dialog box

    I am using forms 10g. Does anyone know of codes to trigger "open file" dialog box in a button object?
    My goal is that the user may be able to select a file from his terminal by clicking a button.
    Thanks in advance.

    As aweiden suggests, there are additional setup steps that have to be completed on your workstation as well as the Forms server so you can use the WebUtil library. If you are using Forms 10g R2, then I recommend you conduct a search of the Forms Help system (Search tab) on "WebUtil" and select the "Configuring WebUitl" topic. If you are on Forms 10g R1 (9.0.4), then you had to download and install WebUtil on your workstation. I recommend you read the Web_Util.pdf in the "DOC" folder an follow all of the steps in Chapter 2 : Configuring WebUtil.
    Craig...

  • Opening a File Dialog Box

    Hi,
    could somebody help me with how to open a file dialog box.
    I have 1 class which has a window with the relevant widgets on it, I want to be able to click a button on the form and pop up a file chooser form then select a file or type in a new filename and then use the selected filename path in the original form to write data out to the chosen file.
    i understand that i need to use JFileChooser and it will need to be in a new class (like a dialog box would be).
    So basically what i have is 2 classes (the main app and a class called FileOpen.class) so how would i display the fileopen class with the JFileChooser component in it and return what ever is chosen into a string.
    e.g.
    String fileName = <what would go here?>
    kind regards

    thats the example filechooser i have working
    yet when i try and implement it in my program i just get countless exception errors, im not sure if its because my program extends Jframe and not JPanel
    here is my code:-
    package as4;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.util.*;
    import javax.swing.filechooser.*;
    import java.io.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2003</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2003</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    public class Readap extends JFrame {
    JPanel contentPane;
    GridLayout gridLayout1 = new GridLayout();
    JPanel jPanel3 = new JPanel();
    GridLayout gridLayout3 = new GridLayout();
    JPanel jPanel1 = new JPanel();
    JTextArea txtaStatus = new JTextArea();
    JLabel jLabel1 = new JLabel();
    JTextField txtCon = new JTextField();
    JButton btnConnect = new JButton();
    JTextField txtPort = new JTextField();
    JTextField txtUser = new JTextField();
    GridLayout gridLayout2 = new GridLayout();
    JLabel jLabel6 = new JLabel();
    JPasswordField ptxtPass = new JPasswordField();
    JLabel jLabel5 = new JLabel();
    JLabel jLabel4 = new JLabel();
    JLabel jLabel3 = new JLabel();
    JLabel jLabel2 = new JLabel();
    JTextField txtHost = new JTextField();
    JPanel jPanel2 = new JPanel();
    JPanel jPanel4 = new JPanel();
    GridLayout gridLayout4 = new GridLayout();
    GridLayout gridLayout5 = new GridLayout();
    JCheckBox chbOracle = new JCheckBox();
    JCheckBox chbOdbc = new JCheckBox();
    JScrollPane jScrollPane1 = new JScrollPane();
    JRadioButton rbtnComma = new JRadioButton();
    JRadioButton rbtnTab = new JRadioButton();
    JRadioButton rbtnSpace = new JRadioButton();
    ButtonGroup delChoice = new ButtonGroup();
    JPanel delPanel = new JPanel();
    JFileChooser fc;
    int dbChoice = 1;
    int conStatus = 0 ;
    String delimiter=",";
    String output="";
    JButton btnClear = new JButton();
    Dbfuncs mydb=new Dbfuncs();
    JPanel jPanel7 = new JPanel();
    JPanel jPanel6 = new JPanel();
    JPanel jPanel5 = new JPanel();
    FlowLayout flowLayout1 = new FlowLayout();
    JButton btnExecute = new JButton();
    JTextField txtQuery = new JTextField();
    JLabel jLabel7 = new JLabel();
    JButton btnOutput = new JButton();
    JLabel jLabel8 = new JLabel();
    GridLayout gridLayout7 = new GridLayout();
    BorderLayout borderLayout1 = new BorderLayout();
    JButton btnExit = new JButton();
    TitledBorder titledBorder1;
    TitledBorder titledBorder2;
    JCheckBox chbQuotes = new JCheckBox();
    JPanel jPanel8 = new JPanel();
    JCheckBox chbHeading = new JCheckBox();
    JPanel jPanel9 = new JPanel();
    ButtonGroup fileChoice = new ButtonGroup();
    JRadioButton rbtnOverwrite = new JRadioButton();
    JRadioButton rbtnAppend = new JRadioButton();
    //Construct the frame
    public Readap() {
    fc = new JFileChooser();
    fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Readap.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    titledBorder1 = new TitledBorder("");
    titledBorder2 = new TitledBorder("");
    contentPane.setLayout(gridLayout1);
    this.setSize(new Dimension(448, 434));
    this.setTitle("Read Database");
    gridLayout1.setColumns(1);
    gridLayout1.setHgap(2);
    gridLayout1.setRows(2);
    gridLayout1.setVgap(2);
    jPanel3.setLayout(gridLayout3);
    gridLayout3.setColumns(2);
    gridLayout3.setHgap(5);
    gridLayout3.setVgap(5);
    txtaStatus.setFont(new java.awt.Font("Dialog", 0, 10));
    txtaStatus.setBorder(BorderFactory.createLoweredBevelBorder());
    txtaStatus.setEditable(false);
    txtaStatus.setText(">>Program Loaded...");
    txtaStatus.setLineWrap(true);
    txtaStatus.setRows(5);
    txtaStatus.setWrapStyleWord(true);
    jLabel1.setFont(new java.awt.Font("Dialog", 1, 12));
    jLabel1.setToolTipText("");
    jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
    jLabel1.setText("Please choose a database...");
    txtCon.setText("Access");
    btnConnect.setText("Connect");
    btnConnect.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    btnConnect_actionPerformed(e);
    txtPort.setEnabled(false);
    txtPort.setToolTipText("");
    txtPort.setText("1521");
    gridLayout2.setColumns(2);
    gridLayout2.setHgap(5);
    gridLayout2.setRows(6);
    gridLayout2.setVgap(2);
    jLabel6.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel6.setText("Password");
    jLabel5.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel5.setText("Username");
    jLabel4.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel4.setText("ODBC Bridge");
    jLabel3.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel3.setText("Port");
    jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel2.setText("Host");
    txtHost.setEnabled(false);
    txtHost.setText("alfgar.coventry.ac.uk");
    jPanel2.setLayout(gridLayout2);
    contentPane.setMinimumSize(new Dimension(100, 110));
    jPanel4.setLayout(gridLayout4);
    gridLayout4.setColumns(1);
    gridLayout4.setHgap(2);
    gridLayout4.setRows(3);
    gridLayout4.setVgap(2);
    jPanel1.setLayout(gridLayout5);
    gridLayout5.setColumns(1);
    gridLayout5.setHgap(5);
    gridLayout5.setRows(2);
    gridLayout5.setVgap(5);
    rbtnComma.setText("Comma");
    rbtnComma.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    rbtnComma_actionPerformed(e);
    rbtnTab.setText("Tab");
    rbtnTab.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    rbtnTab_actionPerformed(e);
    rbtnSpace.setText("Space");
    rbtnSpace.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    rbtnSpace_actionPerformed(e);
    rbtnComma.setSelected(true);
    jLabel8.setFont(new java.awt.Font("Dialog", 1, 12));
    jLabel8.setHorizontalAlignment(SwingConstants.CENTER);
    jLabel8.setText("Choose Delimiter Type");
    jPanel7.setLayout(gridLayout7);
    gridLayout7.setColumns(1);
    gridLayout7.setRows(6);
    jPanel6.setMinimumSize(new Dimension(434, 45));
    jPanel6.setPreferredSize(new Dimension(434, 45));
    btnExit.setText("Exit");
    btnExit.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    btnExit_actionPerformed(e);
    jPanel5.setBorder(titledBorder2);
    jPanel5.setMinimumSize(new Dimension(434, 187));
    jPanel3.setBorder(titledBorder1);
    btnExecute.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    btnExecute_actionPerformed(e);
    chbQuotes.setText("Wrap Data In Quotes");
    chbHeading.setText("Export Column Headings");
    rbtnOverwrite.setSelected(true);
    rbtnOverwrite.setText("Overwrite File");
    rbtnAppend.setText("Append File");
    jPanel7.setBorder(BorderFactory.createLineBorder(Color.black));
    btnOutput.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    btnOutput_actionPerformed(e);
    delChoice.add(rbtnComma);
    delChoice.add(rbtnTab);
    delChoice.add(rbtnSpace);
    delPanel.add(rbtnComma);
    delPanel.add(rbtnTab);
    delPanel.add(rbtnSpace);
    chbOracle.setAlignmentX((float) 10.0);
    chbOracle.setHorizontalAlignment(SwingConstants.CENTER);
    chbOracle.setText("Oracle");
    chbOracle.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    chbOracle_actionPerformed(e);
    chbOdbc.setAlignmentX((float) 10.0);
    chbOdbc.setHorizontalAlignment(SwingConstants.CENTER);
    chbOdbc.setSelected(true);
    chbOdbc.setText("MS ODBC");
    chbOdbc.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    chbOdbc_actionPerformed(e);
    btnClear.setText("Clear Status");
    btnClear.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    btnClear_actionPerformed(e);
    jPanel6.setLayout(flowLayout1);
    jPanel5.setLayout(borderLayout1);
    btnExecute.setText("Execute");
    txtQuery.setMinimumSize(new Dimension(280, 21));
    txtQuery.setPreferredSize(new Dimension(285, 21));
    jLabel7.setFont(new java.awt.Font("Dialog", 1, 12));
    jLabel7.setText("Enter Query");
    btnOutput.setText("Output To File");
    jPanel3.add(jPanel1, null);
    jPanel1.add(jPanel4, null);
    jPanel4.add(jLabel1, null);
    jPanel4.add(chbOdbc, null);
    jPanel4.add(chbOracle, null);
    jPanel1.add(jScrollPane1, null);
    jScrollPane1.getViewport().add(txtaStatus, null);
    jPanel3.add(jPanel2, null);
    jPanel2.add(jLabel2, null);
    jPanel2.add(txtHost, null);
    jPanel2.add(jLabel3, null);
    jPanel2.add(txtPort, null);
    jPanel2.add(jLabel4, null);
    jPanel2.add(txtCon, null);
    jPanel2.add(jLabel5, null);
    jPanel2.add(txtUser, null);
    jPanel2.add(jLabel6, null);
    jPanel2.add(ptxtPass, null);
    jPanel2.add(btnClear, null);
    jPanel2.add(btnConnect, null);
    jPanel6.add(jLabel7, null);
    jPanel6.add(txtQuery, null);
    jPanel6.add(btnExecute, null);
    jPanel7.add(jLabel8, null);
    jPanel7.add(delPanel, null);
    jPanel7.add(jPanel8, null);
    jPanel8.add(chbQuotes, null);
    jPanel8.add(chbHeading, null);
    jPanel7.add(jPanel9, null);
    jPanel9.add(rbtnOverwrite, null);
    jPanel9.add(rbtnAppend, null);
    jPanel7.add(btnOutput, null);
    jPanel7.add(btnExit, null);
    jPanel5.add(jPanel6, BorderLayout.NORTH);
    jPanel5.add(jPanel7, BorderLayout.SOUTH);
    contentPane.add(jPanel3, null);
    contentPane.add(jPanel5, null);
    fileChoice.add(rbtnOverwrite);
    fileChoice.add(rbtnAppend);
    //Overridden so we can exit when window is closed
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    public static void main (String arguments[])
    JFrame frame = new Readap();
    WindowListener l = new WindowAdapter()
         public void windowClosing(WindowEvent e)
              System.exit(0);
    frame.addWindowListener(l);
    frame.pack();
    frame.setVisible(true);
    void chbOracle_actionPerformed(ActionEvent e) {
    dbChoice=0;
    chbOdbc.setSelected(false);
    jLabel4.setText("Conn String");
    txtCon.setText("acal");
    txtCon.setEnabled(true);
    txtPort.setEnabled(true);
    txtHost.setEnabled(true);
    txtaStatus.append("\n>>Oracle Database Selected");
    void chbOdbc_actionPerformed(ActionEvent e) {
    dbChoice=1;
    chbOracle.setSelected(false);
    jLabel4.setText("ODBC Bridge");
    txtCon.setText("Access");
    txtPort.setEnabled(false);
    txtHost.setEnabled(false);
    txtaStatus.append("\n>>MS ODBC Database Selected");
    void btnConnect_actionPerformed(ActionEvent e) {
    if (conStatus==0)
    String url = new String();
    String driver = new String();
    if (dbChoice==0)
    driver="oracle.jdbc.driver.OracleDriver";
    url = "jdbc:oracle:thin:@"+txtHost.getText()+":"+txtPort.getText()+":"+txtCon.getText();
    txtaStatus.append("\n>>Connecting to Oracle Database @ "+url+" via driver:"+driver);
    else
    driver = "sun.jdbc.odbc.JdbcOdbcDriver";
    url = "jdbc:odbc:"+txtCon.getText();
    txtaStatus.append("\n>>Connecting to MS ODBC Database @ "+url+" via driver:"+driver);
    String dbStatus=mydb.openDb(url, driver, txtUser.getText(), ptxtPass.getText());
    txtaStatus.append("\n>>"+dbStatus);
    if (dbStatus=="Connection Successful")
    btnConnect.setText("Disconnect");
    conStatus=1;
    else
    mydb.dbClose();
    txtaStatus.append("\n>>Database Connection Terminated");
    btnConnect.setText("Connect");
    conStatus=0;
    void btnClear_actionPerformed(ActionEvent e) {
    txtaStatus.setText(" ");
    void rbtnComma_actionPerformed(ActionEvent e) {
    delimiter=",";
    void rbtnSpace_actionPerformed(ActionEvent e) {
    delimiter=" ";
    void btnExecute_actionPerformed(ActionEvent e) {
    txtaStatus.append(mydb.runQuery(txtQuery.getText() ) );
    void btnOutput_actionPerformed(ActionEvent e) {
    if (chbHeading.isSelected()==true)
    output=mydb.getAllColName(mydb.getColumnName())+"\n";
    else
    output="";
    Vector mydata=mydb.getResultData();
         int cnt=0;
         for (int index = 0; index < mydata.size(); index++)
              cnt+=1;
              if (cnt>1) output=output+delimiter;
    if (chbQuotes.isSelected()==true)
              output=output+"\""+mydata.elementAt(index)+"\"";
    else
    output=output+mydata.elementAt(index);
              if (cnt>=mydb.getNumCols())
                   output=output+"\n"; cnt=0;
    txtaStatus.append("\n>>"+output);
    int returnVal = fc.showOpenDialog(Readap.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();}
    void rbtnTab_actionPerformed(ActionEvent e) {
    delimiter="\t";
    void btnExit_actionPerformed(ActionEvent e) {
    System.exit(0);
    }

  • What is the open File Dialog box

    I am using a "File Browse..." item. With firefox a user can click on the provided Browse button or the corresponding text area to choose a file. However with IE7 the file dialog box on appears if the user clicks on the browse button.
    Can someone tell me what javascript can be used to open a file dialog box? (what is called when the browse button is clicked)
    Thanks.

    Thanks Carl,
    I thought APEX was doing some crazy javascropt stuff because I forgot about a style I had set.
    Anyway, I was getting an error if an IE7 user types in a crazy string into the file dialog box and hit submit (since it is not a file). So instead of preventing it I just used a try/catch block in my custom doSubmit. If anyone else runs into this here is a little javascript to help:
    (I am used a uploading image, Carl has an example of that somewhere)
    <pre>
    function doSubmit(r) {
    if (ser_changed.length > 0) {
         if (r == "UPLOAD" || r == "SAVE_CHANGES" {
              flowSelectAll();     
              $x_Value('pRequest',r)
    if (r == "UPLOAD") {
    try {                              /// this is where my fix is.
              document.wwv_flow.submit();
    catch(err) {
    html_HideElement('AjaxLoading');
    alert('Invalid file');
    } else {
    document.wwv_flow.submit();
                   }//save changes and stuff as request.
    else {
              var ans = confirm("You are about to exit the page without saving your changes!" + '\n' + "Click cancel to return to the page.");
              if (ans) {
              flowSelectAll();     
              $x_Value('pRequest',r);     
              document.wwv_flow.submit();
              }//when yes!
    $x('CANCEL_BUTT').disabled=false;
                   }//not save changes and stuff
              }//when there were changes made.
              else {
                             flowSelectAll();     
              $x_Value('pRequest',r);     
              document.wwv_flow.submit();
              }//where there were not changes made
         }//doSubmit
    </pre>
    <pre>
    function html_Submit_Progress(pThis,topass){
              if(pThis.nodeName=='INPUT'){pThis.value='...Loading...'}
    else{pThis.innerHTML='...Loading...'};
              html_ShowElement('AjaxLoading');
    window.setTimeout('$x("wait").src = $x("wait").src', 100);
    doSubmit(topass);
    </pre>
    Edited by: cmorris260 on Sep 19, 2008 3:30 PM
    Edited by: cmorris260 on Sep 19, 2008 3:31 PM

  • Please fix: Common Open File Dialog Box to support Favorites (Follow-up: Better provisioning in the Windows client)

    One more thing:
    What's missing is favorites is a way to use the favorites space in the Common Open File Dialog Box.
    Please obsolete or (re)develop components in Windows, so those components support any new workflows in Windows!
    On example of an application where you cannot use Favorites is Adobe Photoshop. It uses the Common Open File Dialog Box in Windows (which does not support Favorites).
    Comparing Finder (MacOS) with Windows Explorer - you "seem" to have the option of using favorites to pin folders.
    Well, if your application calls Windows to use the Common Open File Dialog Box - it's actually NOT POSSIBLE AT ALL to navigate to the user concepts (user folders) pinned to favorites.
    Again, the favorites namespace is completely unused (not provisioned) out-of-the-box. That's may be ok, however it's not fully implemented across Windows and just another example of stuff accumulating up to being unusable.
    What's missing is favorites is a way to use the favorites space in the Common Open File Dialog Box.
    Ref.: Better provisioning in the Windows client
    https://social.technet.microsoft.com/Forums/en-US/dbb2102f-00b7-47ca-88f2-4f88cd9d3409/followup-starting-launching-and-switching-?forum=WinPreview2014Feedback#2aba34e9-6074-4750-8f66-425bdeacc705
    https://social.technet.microsoft.com/Forums/en-US/168bb9f9-ab18-42e6-9f20-5e36e71f742c/merging-the-task-bar-and-the-start-screen-area?forum=WinPreview2014Feedback#168bb9f9-ab18-42e6-9f20-5e36e71f742c
    https://social.technet.microsoft.com/Forums/en-US/59a5bb6a-0368-4f34-bea4-b9811ac0bf8c/dont-forget-development-of-the-start-screen-remember-virtualization-of-it-too-purpose-is-hud?forum=WinPreview2014Feedback#59a5bb6a-0368-4f34-bea4-b9811ac0bf8c
    https://social.technet.microsoft.com/Forums/en-US/c10168fe-a534-44aa-a0ec-e9defc71da5f/better-provisioning-in-windows-client-remember-templates-for-the-start-screen-like-the-need-for?forum=WinPreview2014Feedback#c10168fe-a534-44aa-a0ec-e9defc71da5f

    Congrats to Carmelo!
     Windows Phone and Windows Store Apps Technical Guru - February 2015  
    Carmelo La Monica
    Windows Phone 8: control Nokia Maps (Part 3)
    JH: "Part 3 of the series how to work with the Nokia maps control. As the previous articles this one contains a lot of code snippets and some pictures. Good work!"
    Ed Price: "A great topic, a fantastic breakdown of sections with clear descriptions, and a nice mix of code formatting and helpful images! Another stellar article from Carmelo! Great job including the link back at the end to the portal
    article!"
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to open a save file dialog box in form

    hi
    all
    I have prob in form desing , i have open the save file dialog box , how to open a save dialog box
    and path of the select file to save in disk
    help
    thx

    hi
    user this query when-button-pressed trigger
    :txtfile := GET_FILE_NAME(directory_name =>'d:\ali_raza\backup\', file_filter=> 'DMP Files (*.dmp)|*.dmp|');
    Rizwan

Maybe you are looking for