on 07-12-2007 7:21 AM
HI,
Could someone send me a doc or link which gives me an idea of how to upload and download files in Webdynpro.
Thanks,
Abilash
Hi Abilash,
Please find the link to a blog which describes how to upload and download files in webdynpro.
/people/bertram.ganz/blog/2007/05/25/new-web-dynpro-java-tutorials--uploading-and-downloading-files-in-sap-netweaver-70
Thanks,
Suvarna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abilash,
For download use this code
Create a context attribute and set calculated as true then u will get a getter method,In that u write code like this
IWDInputStream stream = null;
try {
stream = WDResourceFactory.createInputStream(new FileInputStream(new File(<give the location of a file u want to download>));
}
catch (Exception e)
{
e.printStackTrace();
}
return stream;
for open file u set "resource"as Resource type context attribute
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abilash,
For uploading use this code
try{
String Upload=wdContext.currentContextElement().getResource().getResourceName();
FileOutputStream fout=new FileOutputStream(new File(upload));
}
catch(Exception e)
{
e.getStackTrace();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Refer these links they maybe helpful to you
<i><u><b>Uploading and Downloading Files In Web Dynpro Java</b></u></i>
http://help.sap.com/saphelp_nw04/helpdata/en/43/85b27dc9af2679e10000000a1553f7/content.htm
<u><i><b>Uploading and Downloading Files In Web Dynpro Tables</b></i></u>
<i><b>Some more links regarding Uploading and DownLoading Files</b></i>
Regards
SURYA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abilash,
Check the following links which uses the file upload ui element
http://help.sap.com/saphelp_nw04/helpdata/en/43/85b27dc9af2679e10000000a1553f7/content.htm
https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
See these two blogs to know about how to implement this.
/people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis
/people/rekha.malavathu2/blog/2006/12/12/handling-fileupload-and-filedownload-in-netweaver-developer-studionwds-2004s
regards
Anil
reward points if useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.