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 ?


Add a comment
10|10000 characters needed characters exceeded

Related questions

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 (standard library or office integration library).

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

    Hope that helps!


    Add a 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.



    Add a 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.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.