cancel
Showing results for 
Search instead for 
Did you mean: 

Showing dynamically downloaded application in webdynpro

Former Member
0 Kudos

Hello,

In my application , I have a table which contains list of files which are available for downloading . On selecting one , an event is triggered which will fetch the file in binary format from the R3 system. I need to shown this file as external window ( without affecting the current application) Please can any one suggest me the steps to go about it.

Thanks,

V Vinay

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Siarhei Pisarenka ,

It worked .

Vinay

siarhei_pisarenka3
Active Contributor
0 Kudos

Hello Vinay

If you want to show the content of the files in external window you can create new window with following code:


IWDWindowManager.createNonModalExternalWindow(urlToFile, title);

To obtain Url to content of your file you need to create Web-resource:


IWDResource reportResource = WDResourceFactory.createResource(binaryData, fileName, WDWebResourceType); // use WDWebResourceType.XXX constants to specify MIME type of your content
String urlToFile = reportResource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal())); // the behaviour opens file into the window

Best Regards

Sergei

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

U can use pop-up window to show in an external window check this link.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/dialog boxes in web dynpro applications.pdf

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/exportin... context data into excel using the web dynpro binary cache.pdf

Regards,

Vijayakhanna Raman