Skip to Content
avatar image
Former Member

Typical Problem !! File Download UI related

Dear All,

I'm stuck in a typical problem. I upload files thru the File Upload UI and generate uique IDs against every upload document.

For displaying the documents, the user goes thru a web page that has URL to a WDA application.

This WDA application has the unique Number as application paramater.

The problem : If the default view of the WDA has a button and on click the uploaded file opens properly. But if I write the same code in WDINIT , the code gets executed but doesn't open the uploaded file. Reason??? I fail to understand !!!

Any help would be highly appreciated.



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Nov 04, 2009 at 01:13 PM

    Are you using the attach file to response API? Basically in the WDDOINIT, the page is being built for the first time. Therefore the framework on the client side isn't rendered yet to be able to download a file. If you want a file download to trigger "automatically" upon a page load; consider using a timedTrigger UI element set to 1 second and then download the content upon the event of the timedTrigger.

    Is this WDA only being used to download the files via a Link? If so consider if you really need WDA for this. That's a heavy weight framework if you are only wanting to push the download of a file. A stateless BSP or even a ICF handler class might be much better options.

    Add comment
    10|10000 characters needed characters exceeded

    • You can create a custom ICF handler class and assign it to a node in SICF. This is the most lightweight approach. No frameworks, just your class with direct access to the request and response object. If you just need to read a URL parameter and fill the response with a download object, this is the easiest way to go.