on 11-02-2009 5:00 PM
Hi to all!
I'm a newbie webdynpro java programmer and this is my first post!
I have a problem when I try to download file with nonModalWindow using IExplorer 8
(with iexplorer 6/7 and firefox it's all ok)
I' tried to deactivate PopUp blocker and set the "Compatibility Mode" but download don't work..
this is my "essential" code
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow("http://www.example.com/file.pdf" ,txtTitle);
window.setWindowPosition(WDWindowPos.CENTER);
window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
window.removeWindowFeature(WDWindowFeature.MENU_BAR);
window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
window.show();
have you some suggestion for me?
IE 8 is supported in NW 7 SP 20 I guess.
You can try a search on Service Marketplace for this one.
Regards
Avik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI gurus!
I reopen this thread because my problem is not solved
I have installed EHP1 in netweaver portal 7 but my webdynpro doesn't work
When I try to download file in Iexplorer 7 or 8 a new window is automatically opened and closed, but popup to save file doesn't appear..
I have alredy turn off popup blocker and set compatibility mode view
(firefor or google chrome works fine)
this is simple peace of code
IWDResource resource = null;
IWDFileDownload download = null;
IWDCachedWebResource webResource = null;
IWDWindow window = null;
// retrieve byte array for given resource path and store it
// in context value attribute 'FileResource'
File checkfile = new File(fileLink);
if (checkfile.exists() == false ) {
printMessage(1,"fileNotFound","msgError","msgOk","onActionNoAction");
return;
}
try{
FileNameMap fileNameMap = URLConnection.getFileNameMap();
String mimeType = fileNameMap.getContentTypeFor(fileLink);
strFilename = strFilename.trim();
//Get file extension.
int dotPos = strFilename.lastIndexOf(".") +1;
String extension = strFilename.substring(dotPos);
// create resource type from mime type
WDWebResourceType type = new WDWebResourceType(extension, mimeType,false);
//load file content and create resource
byte[] fileContent = loadFile(fileLink);
resource = WDResourceFactory.createResource( fileContent,strFilename,WDWebResourceType.getWebResourceTypeForFileExtension(extension));
}
catch (Exception e) {
e.printStackTrace();
}
window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getUrl(1),txtTitle);
window.setWindowPosition(WDWindowPos.CENTER);
window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
window.removeWindowFeature(WDWindowFeature.MENU_BAR);
window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
window.show();
//update download status
updateDownloaded();
FileDownload UI Element work fine but I can't use it because I have to call "updateDownloaded()" method to update flag in a table for every file than I have downloaded..
Is there an alternative solution to download file in webdynpro java?
Please help me! is very important!!!
thank you!
Roberto
Hi,
I checked that is not supported... and now?
should I open a Sap OSS note??
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Roberto,
Welcome to Enterprise Portal.
You would have to verify your portal version and the browsers supported via the PAM.
Access these links using the service marker place id and password.
https://websmp202.sap-ag.de/pam
Cheers!
Sandeep Tudumu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.