File path selected by the user!!! (File Download)

Hi,
Does exist a component, code line or any thing which emulate the Windows option <b>SAVE AS:</b> when the user does right click, but using a button to do this?
If somebody knows? I will appreciate it.
Thanks in advance!!!
Tokio Franco Chang

Noufal
Thanks for your information!!! I found this post Re: Looking for example to export data from a DynPro table to Excel file which has code lines to export data from a Web Dynpro table to Excel file, it is saved perfectly in the local machine and save it in the server won't be problem.
Your recomendation about the post it is to provide a popup window to change the name and extension of the file, how can I make it? ... Is there an UI Element in NWDS?
Regards,
Tokio

Similar Messages

  • How to get the specific name of the workset which is currently selected by the user in sap portal 7.0

    Dear Expert,
    I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Changed by, Last changed by and others using PCD API.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
    But I am not able to understand how to get the specific name of the workset which is currently selected by the user.Can you please help me.
    I am using portal 7.0.
    Thanks & Regards,
    Patralekha

    Hi Expert,
    I found that we can use Interface INavigationHelperService to read Portal Role selected by user at runtime from http://scn.sap.com/thread/52194
    But this class is available in SAP NetWeaver 7.30 Enterprise Portal .
    But in SAP NetWeaver 7.0 Enterprise Portal that interface is not available.
    INavigationService is available there.
    But didn't get any proper discussion on this interface for the same requirement.
    Can you please help me.
    Thanks & Regards,
    Patralekha

  • How to check the action selected by the user in CRMD_ORDER

    Hi all,
       I have created actions and these actions will be displayed in the actions tool box in CRMD_ORDER
    transaction.
       User can select any actions as required.
       When the user selects any one of these action, i want to get the action selected by the user and i want to validate aganist a field in the same transaction.
       This validation should happen only for certain actions, so i want to find out the action selected by the user .
       I didnt find any threads related to this.  Pls provide inputs.
    Thnks,
    Jean.

    Hi PePe,
         Thnks for ur rply. But both the BADI's didnt helped me, I didnt find any information related to action in these BADI's.
         Any other suggestion pls.
    Regard's
    Jean.
         Didnt find exact solution, i got alternative solution to my requirement. closing the thread.

  • Browse the File path selection in the selection screen

    I want to give the user the option to browse his/her desktop and selct a file path and windows name by clicking on a drop down.
    How do I do that?
    Thank you in advance

    hi ,
    there are so many function modules which will provide F4 Help for the path.
    Suppose you have given a parameter name path.
    You have to use these FMs in the event
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR path.
    Example :
    data : C_FNH_MASK TYPE DXFIELDS-FILEMASK VALUE '.',
    SEARCH_DIR TYPE DXFIELDS-LONGPATH VALUE '/SAPGLOBAL/USERS',
          FILE_PATH LIKE DXFIELDS-LONGPATH.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR path.
    CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
        EXPORTING
          I_LOCATION_FLAG = 'P'
          I_SERVER        = ' '
          I_PATH          = SEARCH_DIR
          FILEMASK        = C_FNH_MASK
          FILEOPERATION   = 'R'
        IMPORTING
          O_PATH          = PATH
        EXCEPTIONS
          RFC_ERROR       = 1
          OTHERS          = 2.
      CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
        EXPORTING
          I_LOCATION_FLAG = 'A'
          I_SERVER        = ' '
          I_PATH          = SEARCH_DIR
          FILEMASK        = C_FNH_MASK
          FILEOPERATION   = 'R'
        IMPORTING
          O_PATH          = FILE_PATH
        EXCEPTIONS
          RFC_ERROR       = 1
          OTHERS          = 2.
    If you remove 'P' and put 'A', then it is used for application server F4 help.
    you have F4_FILENAMEand F4_FILENAME_SERVER  for presentation and application servers respectively
    Reward points if helpful.
    Thanks and Regards.

  • Report to show Service Requests that are open on a day selected by the user

    Dunno if I'm being thick, but I can't see how to do this in a report/dashboard...
    The user selects a day and the report pulls back all the Service Requests that were open on that day using the following logic...
    Service Request Opened Date <= Selected date & Service Request Closed Date >= Selected date
    Is this possible?

    You can do this with a report or a dashboard.
    For a report, create a report your subject ares, like Service Request. In Step 3, Create a prompt on your date and choose Column Filter Prompt. Give the prompt a caption ("Enter/Choose Date" for example). Choose the date field for the Filter on Column. Determine how you want the users to select the value and hit OK. My experience has been that you need to let users type in the date, as opposed to choosing from a drop-down list, because of the volume of data and performance reasons, but test it to determine what works best for your needs.
    For a dashboard, you would need to create a dashboard prompt for your dashboard report. You do this by creating a new report on your intended subject area, i.e. Service Request. Instead of creating the report as you normally do, you need to click on the Create Dashboard Prompt button at the top left, just below the Oracle logo. Choose the right reporting area, then complete the prompt details. Don't forget to allow for the prompt in your report.
    I always recommend that you consider purchasing a great book on reporting, written by Mike Lairson. It is an excellent resource for nearly all of your reporting questions. You can find it on amazon.com.
    http://www.amazon.com/Oracle-Demand-Reporting-Osborne-ORACLE/dp/0071593047/ref=sr_1_1?ie=UTF8&s=books&qid=1274893170&sr=8-1
    Good Luck,
    Thom

  • How do I create a specific packages for users where in only the admin has the access of which software the user can download?

    Is there any possibilities that the admin of the team can limit the packages of the user? Only the admin can add and remove software to be downloaded for specific users.

    You can include single app plans in team packages, but otherwise no. This will exclusively depend on the users' local permissions on the computer - if the can install one app, they can install all of them, be it only as a trial.
    Mylenium

  • How to code a button to enable the user to download music?

    I am trying to build a site where you can download music.  Has anyone done this before in AS3?  Any tips?
    Thanks
    m

    use the filereference class to download files.

  • How do I get my application to continue processing instead of waiting for a menu selection when the user clicks on a drop-down menu?

    I'm developing a process-control application,using serial communication for data acquisition. My problem - I need this serial read of data to be continuous. But, when I click on a drop-down menu, the rest of the processing halts until I click on one of the menu items in the drop-down list and I lose data in that interval. What can I do?

    In most process-control applications it is not about just avoiding lost measurement data. The most important is having a robust control-algoritm that reacts to a change of input-situation in a given time.
    A non-responsive system is not a very reliable process-control solution.
    The vi you mentioned are only around since the latest versions and the old method of polling controls still suits many applications (but that's another discussion).
    As about RS-232 input time-outs, I have never used that.
    In the time before VISA was created I (as other LabVIEW users I discovered) used a method of storing every incoming string in a buffer (memory-vi with USR) and that still works (classic serial VI's versus VISA is also another never-ending discussio
    n).

  • "File Dialog" Express VI returns the wrong path when the user selects the desktop

    In labview 8.0.1 with Windows
    XP, the File Dialog Express VI seems to return something other than the path
    selected by the user when configured to browse for folders (or files and
    folders) and the user selects the desktop.
    I can't determine exactly when it works and when it fails, but it always seems
    to fail if the user selects the desktop from the places bar (the shortcuts on
    the left side of the dialog) or from the drop-down menu at the top of the
    dialog and then clicks the "Current Folder" button to dismiss the
    dialog.  In this case it always returns whatever path is wired to the
    "Start Path" terminal.
    If the user navigates to the desktop with the "Up One Level" button
    or by selecting the actual desktop directory under Documents and Settings, the
    correct path is returned.
    If the user selects a file before clicking the desktop icon, then clicks
    "Current Folder" the correct path is returned.
    If the user clicks the desktop icon, clicks open, then clicks "Current
    Folder" the correct path is returned.
    It's possible to work around this bug in most cases by setting the start path
    to the desktop.
    Has anyone seen this behavior before?
    Can anybody verify this behavior by running the attached VI?
    In the past, when I've reported issues like this I've received responses from
    NI engineers that basically said "Thanks, but we already knew
    that".  Is there anywhere that users can search the list of known
    bugs and avoid wasting time tracking down issues that are already understood by
    NI?
    Thanks,
    Adam Brewster
    Attachments:
    File Dialog Test.vi ‏39 KB

    I'm on 8.2 and I can't get it to fail no matter how I select the desktop. I haven't tried it in 8.0, but I imagine that if this really is a bug, they did know about it and fixed it with 8.2. If this causes a real problem for you, I would suggest upgrading if you can.

  • File download from the server

    I have this page(in a distributive application) that checks the status of files on the server. These are hyperlinked and I am trying to allow the users to download the files. I can see the files, and the links but can't download a file or "save target as.." option.
    I have added an .xml file in the configuration directory of my application server(JBoss). I can download the files on the same computer, but if I can't do that from other computer. I got this .xml file from online search, someone suggested to use this in order to allow for download option.
    <?xml version='1.0' encoding='utf-8'?>
    <Context debug="99" docBase="/home/jboss-4.0.5.GA/bin/Fastran" path="/Fastran" reloadable="true">
    </Context>Can I get some help in this regard ? The files are created in the application server folder, should I change the destination for resultant files outside of the server folder ?
    Thanks.

    <%
            String userFolder = applicationId.getUserEmail() + applicationId.getSessionId() ;
            for (int i = 0 ; i < Integer.parseInt(applicationId.getSpecValue()) ; i ++)
                int j = i + 1 ;
                File spec = new File("C:\\jboss-4.0.5.GA\\bin\\Fastran\\" + userFolder + "\\ftn07_" + (i+1)) ;
                if (spec.exists() == true)
                    //out.println("") ;
                %>
                <a href = "<%= destFile %><%= j %>"><% out.println("ftn07_" + j); %></a><br>
                <%
                else
                    out.println("File not found") ;
        %>
    and here is how i get to the destFile:
    <%
         String destFile = "C:\\jboss-4.0.5.GA\\bin\\Fastran\\" + applicationId.getUserEmail() + applicationId.getSessionId() + "\\ftn07_" ;
            String destSum = "C:\\jboss-4.0.5.GA\\bin\\Fastran\\" + applicationId.getUserEmail() + applicationId.getSessionId() + "\\DamageSummary.txt" ;
        %>

  • How to check the status of file downloading?

    I have to download the selected file by using "file download" dialogue box.
    This "File Download" dialogue box provides options for "Open", "Save", "Cancel" or "More Info". It is similar to usual "File Downloading".
    And i am required to do further processing only if , file is "Open" or "Save".
    So how can i check the status of the option selected by the user?
    Following is the code snippet:
    res.setContentType("text/plain");
    res.addHeader("Content-Disposition", "attachment; filename=" +value);
    try
         uFile= new File(fPath);
         fSize=(int)uFile.length();
         fis = new FileInputStream(uFile);
         c=-1;
         while ((c = fis.read()) != -1)
              out.print((char)c);             
         fis.close();
         out.flush();
         out=null;
    catch(Exception e)
           out.println("Exception : " +e);
    } I tried to generate a flag and inside a while loop, and then checking the status of that flag outside of loop.
    But it doesn't work.
    It reflects the value of flag even if user selects "Cancel" Option.
    So, if there is any another way of checking the option selected by user from "Open","Save" or" Cancel", then please reply me.
    Thanks in advance.

    Is there any solution for this or any web link for this...?
    Thanks in advance,
    Waiting for reply

  • Filename on file download from jsp

     

    This may help:
              ----- Original Message -----
              From: "Erik Lindquist" <[email protected]>
              Newsgroups: weblogic.developer.interest.jsp
              Sent: Wednesday, June 28, 2000 6:20 PM
              Subject: How to dynamically display images in JSPs
              > This took a little while to figure out so I thought I'd share. After
              > doing some research I was led to the following approach on how to load
              > images from an Oracle database into a JSP:
              >
              > The "main" JSP:
              >
              > <HTML>
              > <head>
              > <title>Image Test</title>
              > </head>
              > <body>
              > <center>
              > hello
              > <P>
              > <img border=0 src="getImage.jsp?filename=2cents.GIF">
              > <P>
              > <img border=0 src="getImage.jsp?filename=dollar.gif">
              > <P>
              > world
              > </body>
              > </HTML>
              >
              >
              > And this is the image getter:
              >
              > <% try {
              > response.setContentType("image/gif");
              > String filename = (String) request.getParameter("filename");
              > java.sql.Connection conn =
              > java.sql.DriverManager.getConnection("jdbc:weblogic:pool:orapool"); //
              > connect to db
              > java.sql.Statement stmt = conn.createStatement();
              > String sql = "select image from testimage where filename = '" +
              > filename + "'";
              > java.sql.ResultSet rs = stmt.executeQuery(sql);
              > if (rs.next()) {
              > byte [] image = rs.getBytes(1);
              > java.io.OutputStream os = response.getOutputStream();
              > os.write(image);
              > os.flush();
              > os.close();
              > }
              > conn.close();
              > }
              > catch (Exception x) { System.out.println(x); }
              > %>
              >
              >
              > The thing to note is that there are no <%@ page import="..." %> or <%@
              > page contentType="..." %> tags - just the single scriptlet. It
              > seems that for every "<%@" the weblogic compiler sees it puts
              > out.print("\r\n"); statements in the generated java source.(???) I
              > don't know much about how browsers work but I think that once it sees
              > flat ascii come at it it treats everything that follows as text/plain
              > which is incorrect for the binary stream that's being sent. Another
              > work around was to set out = null; but that's kind of ugly and might
              > produce server errors. The real fix is to write a bean to handle images
              > which I'll work on next (does anybody have any hints on how to do
              > that?)
              Cameron Purdy
              [email protected]
              http://www.tangosol.com
              WebLogic Consulting Available
              "Ramesh" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi,
              >
              > Even I could download the files with this technique, I couldn't open the
              file downloaded. It seems the file is getting currepted during tranfer.. Can
              u help me in this regard please?
              >
              > Thank u
              > Ramesh
              >
              > [email protected] (Anders B. Jensen) wrote:
              > >In an Web-application written in Java Server Pages it should be possible
              > >for the user to download data from the web-server. The data will never
              > >exist as a file on the web-server, only in the PrintWriter object, out.
              > >To force the Internet Explorer (IE) to show the download dialog window
              > >the Contenttype of the HTTP-header have been set to "html/transfer". The
              > >question is:
              > >
              > >Is it possible to set the filename appearing in the download dialog
              > >appearing on the client?
              > >
              > >
              > >Below is a listing of the source-code:
              > >
              > ><%@ page extends="com.beasys.portal.admin.PortalJspBase"%>
              > ><jsp:useBean id="download" scope="session" class="dk.lec.DownloadData" />
              > >
              > ><%
              > > String tmpstr;
              > > response.setContentType("html/transfer");
              > > out.clear();
              > > tmpstr=download.getStrbuffer().toString();
              > > out.println(tmpstr.trim());
              > >%>
              > >
              > >
              > >Anders B. Jensen
              > >Consultant, Research & Development
              > >LEC AS
              > >
              > >Remove the SPAMLESS to mail me.
              >
              

  • Regarding File Download

    Hi Experts,
    I am downloading excel file from internal table using GUI_DOWNLOAD FM. but i want to add header and also want to set some properties of EXCEL file form ABAP program.
    for Ex. I want to lock some cells which should not be editable in Excel file after downloading...
    for this is there any FM or Class in ABAP  ????
    Points will be rewarded...

    hi naresh,
    try using this piece of code, and change according to ur req.
    create gt_header int table for displaying headers in Excel.
    Ex:
    FORM get_field_headings .
      CLEAR: ls_headings.
      ls_headings-matnr = text-002.  " Material Number
      ls_headings-werks = text-003.  " Plant
      ls_headings-verid = text-004.  " Production Version
      ls_headings-adatu = text-005.  " Valid From Date
      ls_headings-bdatu = text-006.  " Valid To Date
      ls_headings-mdv01 = text-007.  " Production Line
      ls_headings-ktext = text-008.  " Production Line Description
      ls_headings-pltyg = text-009.  " Rate Routing Task List Type
      ls_headings-plnng = text-010.  " Rate Routing Group
      ls_headings-alnag = text-011.  " Group Counter
      ls_headings-bmsch = text-012.  " Base Quantity
      ls_headings-meinh = text-013.  " Base UOM
      ls_headings-vgw01 = text-014.  " STD Value
      ls_headings-vge01 = text-015.  " STD UOM
      APPEND ls_headings TO gt_headings.
    ENDFORM.                    " get_field_headings
    Use this GT_HEADINGS int table in GUI_DOWNLOAD fm as used below..
    This sub-routine is used to create an excel file in specified location
    with field headings.
    FORM create_excel_file.
      DATA : lv_file TYPE string.
      CONSTANTS: lc_true(1) TYPE c VALUE 'X'.
    Assign input field(p_fname type ibipparms-path) entered by the user to
    lv_file(type string) to avoid type conflict.
      lv_file = p_fname.
    Function module for downloading the field headings into an excel file.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename              = lv_file
          write_field_separator = lc_true
        TABLES
          data_tab              = gt_headings.
    Function module for appending production data into the same excel file.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename              = lv_file
          append                = lc_true
          write_field_separator = lc_true
        TABLES
          data_tab              = gt_prod_data.
    ENDFORM.                    " create_excel_file
    Reward points if useful
    Chandra

  • Multiple file download

    I'm using FileReference.download() to download a single file from a server to a local machine.
    The download() function opens a dialog box where the user select where he wants to save the file and what name give to it.
    Is it possible to download X files in sequence without calling X FileReference.download() and so X dialogs open?
    A single download() with more files?
    Multiple download() but without the dialog box?

    i doubt it, if that was possible it would provide a major security hole that could be exploited.
    I developed a FTP application in flex for a client a while back, and that's when i did most of my searching around to see if this was possible, and couldn't turn up anything apart from people saying it wasn't possible.
    I'd be very interested to hear if someone say it is, but until then i believe the only way to accomplish something like this is like a said, a server side script to handle all selected file references for download, zip them up and then allowed the user to download that zip file.
    I imagine, it might be possible in AIR (considering that has far greater access to the local machine), but as far as a flex app goes, i'm pretty confident to say it's not possible.
    let me know if you find out otherwise though.

  • Create file downloadable from browser?

    I'm looking for any help (code examples too) on how to create a file that the user can download to a location of their choice. This is my first web app that is pretty basic, it's essentially a front end to a database that allows a user to search, display or update. Now I want to add a download function. This is all being done on an intranet. Thanks!

    You need to create two jsps: one that collects the info and the other the recieves the information I have. let me know if you have anyproblems
    <%@ page import="
    javax.naming.*,
    java.util.*,
    java.sql.*,
    java.io.*"
    %>
    <%
    if ("POST".equals(request.getMethod())) {
    String value1 = (String) request.getParameter("value1");
    String value2 = (String) request.getParameter("value2");
    String value3 = (String) request.getParameter("value3");
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    String sqlQuery ;
    sqlQuery = "select * from <tablenname>"
    try {
         Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
         conn = DriverManager.getConnection("jdbc:sybase:Tds:devsrv:20020/SSB_DEV", "adqusr", "adqusr81");
         stmt = conn.createStatement();
         rs = stmt.executeQuery(sqlQuery);
         ResultSetMetaData rsmd = rs.getMetaData();
         int numCols = rsmd.getColumnCount();
    // This is the creates the data that will be saved
         while (rs.next()) {
              for (int i = 1; i <= numCols; i++) {                   
              out.print(rs.getString(i).trim()+ ",");
         dos.write(10);
         out.println();
         // This will open a download dialog box
    response.setContentType("text");
         response.setHeader("Content-Disposition","attachment;filename=\"myFile.txt\"");
         out.close();
    catch (FileNotFoundException ex) {
    %>
    <p><b>There was an error executing or processing the file:</b>
    <br>
    Exception: <%= ex %>     
    <%
    catch (IOException ex) {
    %>
    <p><b>There was an error executing or processing the file:</b>
    <br>
    Exception: <%= ex %>     
    <%
    catch (Exception e) {
    %>
    <p><b>There was an error executing or processing the file:</b>
    <br>
    Exception: <%=e%>     
    <%
    finally {
         try {
    rs.close();
    stmt.close();
    conn.close();
    catch (Exception e) {
    out.print("<b>There was an error closing the database connection</b>");
    out.print("<br>Exception: " +e);     
    out.print("<br><pre>"+getStackTraceAsString(e)+"</pre>");
    %>
    <%!
    String getStackTraceAsString(Exception e)
    // Dump the stack trace to a buffered stream, then return it's contents
    // as a String. This is useful for printing the stack to 'out'.
    ByteArrayOutputStream ostr = new ByteArrayOutputStream();
    e.printStackTrace(new PrintStream(ostr));
    return(ostr.toString());
    %>

Maybe you are looking for

  • How do i find the password for my ipod classic

    Hey guys I'm having a problem with my ipod it's saying if need an password but I have no idea what it is, it locked my out so I have plugged it into my laptop with which I registered my ipod but I cannot find the password to unlock it on the registra

  • Ipod shuffle isn't recognized by computer?

    when i plug my new ipod shuffle into a USB port in my computer nothing happens?

  • Doubt on Aync-Sync Bridge without BPM

    I created a scenario using Aync-Sync Bridge without BPM: File(Asyn) => Rfc:BAPI_PO_CREATE1(Syn) 1 which mode of message interface should be used in IR for File(Asyn)?    Asyn or Syn? 2 if syn MSG interface should be used in the above question,how can

  • Living in Brasil can I publish my iWeb site on a foreign hosting site?

    Hello folks, I have a web site developed with iWeb and presently published in a hosting site in Brasil, but I am unhappy with such hosting site for several reasons,  the main one is that it doesn't "speak" iWeb  and Apple language, making almost impo

  • How to find BW Indexes not used in a long time

    Hello all, I am attempting to find out which indexes have not been used in the last 2 years in a effort to eliminate indexes from our BWA environment.  Is there a way I can query our BW environment to figure this out?  Is there a table, or group of t