Skip to Content
author's profile photo Former Member
Former Member

Directory Chooser, File Chooser

I would like to choose a directory and in another case a file using WebDynpro. I find no UI element that gives me a File object (which would give me a path) for this.

And yes, I want this on the client and on the server.

did I miss out something ?

Walter

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 28, 2004 at 08:38 AM

    Hello Walter,

    I am not quite sure, what you want to achieve:

    - would you like to upload or download a file?

    FileUpload: You can use the FileUpload UI element to upload files from the client to the server. The UI element appears with an input field, in which the directory path and the file name appear, and a button for searching for the file

    FileDownload: You can use the FileDownload UI element to load files from the server to the client. The data property determines the data source in the context. The target property determines the ID of the target window in the browser.

    - or would you like to display an Office document?

    The Office Integration library features the OfficeControl UI element, which enables you to display the following documents:

    · Microsoft Word documents with extension doc

    · Microsoft Excel documents with extension xls

    · Star Office text documents with extension sxw

    · Star Office spreadsheet documents with extension sxc

    Detailed information about one of the above topics can be found within the documentation http://help.sap.com/saphelp_nw04/helpdata/en/13/a3bb3eff62847ae10000000a114084/frameset.htm (standard library or office integration library).

    If you want to achieve something else, could you please describe a bit more detailed?

    Hope that helps!

    Karin

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2004 at 02:16 PM

    Hello Karin,

    I want to do a picture show. First, I want to choose a directory on the webserver. Then I want the first File object. When the user presses the "Next" button, an iterator shall give me the next File object from the directory.

    Another example: I want to write to a file from my WebDynpro App; and I want to choose the target file interactively.

    I found I cannot do this by (mis)using the Upload and Download UI Elements.

    greetings

    Walter

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Walter,

      I think you have to understand the difference between a Web Application running in a Browser Window what Web Dynpro is and a Dynpro program running in the Fat Client SAP GUI. Because of security reasons the Web Server is not allowed to access the harddisk of the client.

      One solution could be that you force the user to pack all files in one ZIP-File and to upload that to the server where it can be extracted.

      Regards

      Gregor