Hy all,
i want to implement the Function of the FileDownload UIElement to a normal Button. If the Button was pressed the download of the file should be starts.
What is the best way to implement this scenario ?
First i have implemented the "normal" FileDownload with the UI Element and it works fine !
My question is, on which place(wdDoInit, wdDoModifyView) i must create ("dynamicly" ?) a FileDownload Element and how ?
Is there a Methode to combine a Button with a FileDownload UI Element ?
Thanks for help.
Regards
J. Berndt
Hello.
Use the IWDFileDownload UI element itself for this task. If you want to change its visual design, you could change the stylesheet/theme. There are articles on how to do this in the SDN Developer Area section for Web Dynpro.
To create a IWDFileDownload or any other UI element programmatically, you have to write code in method wdDoModifyView():
IWDFileDownload fd = (IWDFileDownload) view.createElement(IWDFileDownload.class, <id>); /* bind it's properties to context attributes... */ fd.bindXYZ(<context path>); /* add it to some container... */ container.addChild(fd);
Armin
Hi Jurgen
The File Download element can use an image instead of link to action a download.
You can make this image look like a Web Dynpro button or just a symbolic image (to bypass multilingual requirements if you have any)
;-B
Regards
Pran
Message was edited by: Pran Bhas
Add a comment