How to get a file save dialog box on button click

Hi All,
I have  some text  and I want to write this text in to a  file.Then I want to save this file to my local system using a file save dialog box so that I can choose the location where I want to save this file.Please tell me how can I do this in WebDynpro.
If I cannot get the File save Dialog Box then how can I give the path while creating the new file so that it is created on my local system  as the application is running on server.
Regards
Rahul

Hi Rahul,
Sometime back I was also facing the same requirment and there are only two solutions to it one is what Armin suggested to use the file download UI element the other one you can get from this link How to write a file on our local machine using Web Dynpro
Regards
Sid

Similar Messages

  • 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].

  • Oracle BPM 10.3 File Save Dialog Box

    Hi,
    I am using Oracle BPM 10.3. Can anybody tell me that how to get a File Save Dialog box in the method. On the method call i want to call Save Dialog box which will save the file on the local computer.
    Thanks
    Edited by: user9293762 on Sep 2, 2010 9:35 AM

    The compilation within Studio works with a bit smaller (like 35MBytes) project, thus I think the problem is some sort of memory handling.
    The problem comes up while it is trying to compie/load 'external resources': it still works with 512M or even 256M of heap before this operation.
    Some weird thing is that I cannot set Xmx >640M, nor launcher.XXMaxPermSize > 1024M (winXP SP2, 2G RAM). While I'm sure that nothing is hacked around the memory allowance of Windows (i.e. how much memory does it allow for particular executables), I think this operation should be tested to work even on 256M heap...
    On the other hand, the ANT compilation works well.
    Well, almost well.
    I have had some errors in my project, which ALBPM6.0 said to be OK, like defining a String array attribute 'not null' and setting no default value; or defining some object to be abstract and instantiating it.
    However these errors are not always reported, e.g. during catalog compilation: XY must be explicitly instantiated before being used since it does not have a default initialization... thus made it static (however, it has been used as static all the time).
    I had to hack CatalogPublisher a bit so that I can read them on stdout, and correct those syntax errors.
    For this possibility, iterate over the non-empty foCheckerListener.getPresentationErr() in CatalogPublisher after checkXO().

  • File Save dialog box not showing correct file name while saving file

    hi
    Currently, after the Submit button is hit, the File Save dialog box is displayed. If the user saves the file and then opens it then the output appears correct however if the user chooses to open the file without saving on the local machine then the correct viewer is not used to display the file. The name of the file is defaulted as qotSCopPrint.jsp and the default file viewer for jsp files is chosen to view the file. The format of the file is obviously not text (it is either pdf or rtf) so the output shows binary characters.

    data : v_repid like sy-repid.
    parameters : p_file like rlgrap-filename.
    initialization.
    v_repid = sy-repid.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = v_repid
                dynpro_number = syst-dynnr
                field_name    = 'P_FILE'
           IMPORTING
                file_name     = p_file.
    Message was edited by:
            Chandrasekhar Jagarlamudi

  • Wpg_docload not producing a file save dialog box

    Hi Everyone,
    I have a BLOB column in a database table and I want to show a link on a web page so when user click on it, it pops up a file download dialog box giving the user option to either open or "save as".
    I am using wpg_docload.download file but it seems to be load the blob data into the browser (inline)
    Here is the code:
       -- get image size
        intimgsize := dbms_lob.getlength(page_b_contents);
        -- print the header   
        owa_util.mime_header('Content-Type:application/vnd.ms-word;charset=utf-8', false);
        htp.p('Content-length: ' || intimgsize);
        htp.p('Content-Disposition:attachment filename="test.doc"');
        owa_util.http_header_close;
        -- download BLOB
        wpg_docload.download_file(page_b_contents);
    Any thoughts what might be wrong?
    Thanks

    How must wpg_docload.download_file hack across the network, and into the client o/s process executable running the browser, and then force that browser process to pop up a dialog box to save contents as a file?
    Do you understand the concept behind Mime types? The browser has specific actions (some configurable) for specific Mime types. PL/SQL can specify the Mime type. And provide a well formatted Mime header. It cannot however force the browser to act in a specific way when it receives that Mime stream from PL/SQL.
    See Office 2007 File Format MIME Types for HTTP Content Streaming - VSOfficeDeveloper: Known Problems, Bugs, and Fixes - Si… for basic header details.

  • Urgent!!how to open the file download dialog box????

    Hi all,
    i'm using the browse button for the user to select the file
    and a submit button, which when cliked should open the file
    download dialog box asking for open or save.
    i searched for so many forums and websites and didn't get the
    solution yet.
    i'm using jsp.
    anyone have the jsp code for the same????
    will b more helpful if u send it to me.
    thanx in advance.

    Hi
    Use the Filedialog class.
    Let your button call a method wich contains the following Java code:
    FileDialog filedialog =
    new FileDialog( Frame1.this, "Open a File", FileDialog.LOAD );
    //witch calls this constructor: public FileDialog(Frame parent, String title, int mode)
    //use Filedialog.SAVE to save a file.
    filedialog.show();
    String filename = filedialog.getFile();//to display the name of the file
    String directoryname = filedialog.getDirectory();// to display the directory name

  • How to get the file name dialog on the selection screen

    Hi All
    I have a selection screen in which there is a parameter where I need to enter file name. Instead of typing filename in the parameter I would like to give a path from presentation server ( I am downloading Data to presentation server ).
    How to achive this functionality in case of a parameter on the selection screen. I need to have File open Dialog box like Windows here and then it should show the filename and it's path in this parameter after selectiong from the dialog box.
    Amol

    Hi..,
    Use the function module <b>F4_FILENAME</b> or <b>WS_FILENAME_GET</b> in the event
    <b>AT SELECTION-SCREEN ON VALUE REQUEST FOR P_FILE.</b>
    Parameters p_file type rlgrap-filename.
                AT SELECTION-SCREEN ON VALUE REQUEST EVENT            
    at selection-screen on value-request for p_file.
      perform value_request.
    *&      Form  value_request
          This subroutine proposes the possible input values             *
    There are no interface parameters to be passed to this subroutine.  *
    form value_request.
      call function 'WS_FILENAME_GET'
       importing
         filename               = p_file
       exceptions
         inv_winsys             = 1
         no_batch               = 2
         selection_cancel       = 3
         selection_error        = 4
         others                 = 5.
      check sy-subrc eq 0.
    endform.              
    Reward all helpful answers !!
    sai ramesh

  • Opening a LOV dialog box on button click

    How can i open a LOV dialog box on click of a button?
    I tried putting javascript:fun() in button request value but it did not work.
    can it be done using branches?

    Abhishek,
    Unfortunately, the button in a region position will not work as the only submit. But guess what, we don't need to have an item or an Apex button to "put" a button on the page!
    Go into your text item in the Post Element Text place some code like this:
    &lt;span>&lt;input type="button" value="Click Me" onclick="myFunction"/>&lt;/span>You could use a button or an image for a more "custom" look. As for the value of the button, you can update that via your JavaScript code.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How to get mac to open dialog box before opening specific program?

    Hi
    I was wondering if there is a way have my computer ask me before opening a spacfic program. I have a program with a limited number of start-ups (demo) and would like a safe-gaurd from opening it unnesscaraly when clicking through files. Can this sort of dialog-box function be eneabled?

    Try:
    My mac keeps on asking me for keychain passwords ...which I have either forgotten or never used
    Frequently asked questions about iCloud Keychain

  • Open Dialog box on button click using Visual Webpart

    Hi,
    I am trying to create New Item,Edit Item & Delete Item button in Visual web part.On clicking on the button it should open the corresponding custom form on dialogue box.I don't want to create any button in the ribbon.I just want to create UI page for
    all buttons and also corresponding input forms on button click in Visual web part.
    Is it possible through visual web part?
    I will be needing your initial guidance to achieve this.
    Please help.
    Thank you.

    Hi,
    According to your post, my understanding is that you want to open modal dialog in a visual web part.
    To open a modal dialog, there are multiple ways, such as using JavaScript.
    However, for your scenario, you should register the script from the C# code, there are some articles for this topic, you can refer to them.
    http://www.ashokraja.me/articles/How-to-Programmatically-Show-or-Hide-a-Modal-Popup-Dialog-with-Server-Side-Code-in-Share-Point-2013
    http://blogs.perficient.com/microsoft/2012/01/sharepoint-2010-closing-a-modaldialog-manually-from-code-c-and-javascript/
    More reference:
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • File Save Dialog Box Option

    Hi Experts,
      Is there any Function Module or options available to save the contents of one Internal Table , by Browsing the Windows drive & Giving the File name.
    FILENAME = "C:\TEST.TXT
      CALL FUNCTION 'WS_DOWNLOAD'
             EXPORTING
                  FILENAME = FILENAME
                  FILETYPE = 'DAT'
             TABLES
                  DATA_TAB = FINALITAB.
    Instead of Hardcoding the Path (c:\test.txt) , i need to choose the drive & give the file name..
    Urgent!!!Help me.....
    Thanks in advance..

    data : v_repid like sy-repid.
    parameters : p_file like rlgrap-filename.
    initialization.
    v_repid = sy-repid.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = v_repid
                dynpro_number = syst-dynnr
                field_name    = 'P_FILE'
           IMPORTING
                file_name     = p_file.
    Message was edited by:
            Chandrasekhar Jagarlamudi

  • How to invoke 'File Open' dialog box in Forms (under unix)

    Hi all,
    On the Unix platform (motif), how do I get the File Open Dialog
    Box by using Forms45.
    Thanks and regards,
    Srinivasa.
    null

    going from 6i to 10g is a migration. That's no easy step normally.
    client-server-functionality has gone. web-functionality is new.
    Install the new webutil-toolset from oracle and use the new file-open-dialog from the webutil.pll. That's the way you work in the new 10g-environment.
    Read in the forms-section of the OTN the migration-papers and the webutil-doc's

  • Windows File Save dialog freezes a virtual folder

    We have a shell namespace  extension that presents a remote document repository as a virtual  folder in the Desktop folder. When the File Save dialog box is opened from  within Adobe Reader or  Acrobat version 9, our  virtual folder appears inactivated. Even though the common dialog box displays  the items in the folder, it is not possible to select any of the items, e.g.,  using a mouse click or key code press.
    Note that the same common  dialog when running in open mode works fine. Our virtual folder is enabled, and  an item can be selected for the Open action. It appears that the problem shows  up only when the Save dialog runs from within Adobe Reader 9 or Acrobat  9.
    The problem appears to be  limited to Windows 7 and Vista. XP does not have the  problem.
    I would like to know  why and how the save dialog gets disabled, and would like to know how  to prevent the dialog from disabling the  virtual folder. 

    Hi,
    I have followed the example you mentioned to save a picture to the folder shortcut, and the name won't change to the shortcut. Also the picture would be saved into the original folder.
    Here is the steps I did:
    1. Create a folder named New folder in My documents:
    2. Select it and then press ctrl + C and right-click on destop choose paste shortcut(named New folder-Shortcut);
    3. Right-click on a picture in one webpage then open the save picture as dialog box;
    4. Navigate to the desktop folder shortcut and double-click into it, the file name field won't change;
    5. My machine is Windows 7 Enterprise SP1.
    Would you please tell some more details on how you saved the picture?
    In addition, there might be some other applications triggered this action, we may take a look with process monitor:
    The download link here:
    Process monitor
    And here is a blog talking about how to use it:
    Process Monitor - Hands-On Labs and Examples
    If possible, please redo the action, then upload the result into onedrive and paste the link here.
    Best regards
    Michael Shao
    TechNet Community Support

  • Download file in struts - File save dialog not showing up

    Hi,
    The issue i have is - the file save dialog box which should be displayed on file download is not showing up.
    I have a DAO being called from the Action form SaveDocumentAction which extends DispatchAction and has a download(mapping, request, response,..) method. Below are relevant portions of my code.
    public void showDocument(DocumentTO Doc, HttpServletResponse response){
    //get filename etc
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition", "attachment; filename=myFile.txt");
    OutputStream out = response.getOutputStream();
    //code for writing from input file to out
    I shld be getting a File Save dialog after response.setHeader(), but I am not. Can anyone tell me where I am going wrong. I have printed SOPs and all print fine, even the file writing part.

    Put this code into a servlet rather than a JSP.
    JSP are for returning text based HTML pages. It adds extra carriage returns into the response that will corrupt the file, and prevent the dialog showing up.
    This code is much better off being in a servlet
    If you are using a FileInputStream, you should be using a ServletOutputStream rather than the JSP writer: response.getOutputStream()
    When dealing with file input in a JSP/Servlet you should use the methods of ServletContext. getRealPath() turns a website relative file into a real location on disk. getResourceAsStream() opens the file for you. getResourceAsStream() is more reliable as it will work even if the web app is deployed in a packed WAR.
    Cheers,
    evnafets

  • File download dialog box events and work around

    Hi all,
    I have a amall problem.
    when i set content type and header for downloading a file which is generated from the server i get a "file download dialog box" (open/save/cancel)
    but the problem is i cannot capture the events i.e. if the client clicks 'cancel' since i cannot capture 'cancel' i cannot do some other modifications that need to be done when the file is not downloaded.
    is there any way which i can track if the file is actully downloaded by the client or not??
    Or is there any way i can just by pass this dialog box and get a "save as dialog box" which enables him to choose a location directly download to his hard drive.(In this case i ll get a javascript confirmation before actully creating the file)
    i am using IE6SP1.
    Thanks in advance for your support.

    Just using JSP/HTML/Javascript code I don't think there is a way to do what you want. You might be able to do so using a Java Web Start application - like a download manager.

Maybe you are looking for