cancel
Showing results for 
Search instead for 
Did you mean: 

problem to download file with Iexplorer 8

roberto_carini
Explorer
0 Kudos

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?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

IE 8 is supported in NW 7 SP 20 I guess.

You can try a search on Service Marketplace for this one.

Regards

Avik

roberto_carini
Explorer
0 Kudos

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

roberto_carini
Explorer
0 Kudos

Hi,

I checked that is not supported... and now?

should I open a Sap OSS note??

thanks

Former Member
0 Kudos

Roberto,

There is no point in raising an OSS message. The PAM suggests it does not support IE 8.0 which means you can not use this version.Probably SAP might come up with some patch or fix in the future.

Cheers!

Sandeep Tudumu

Former Member
0 Kudos

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

http://service.sap.com/pam

Cheers!

Sandeep Tudumu