Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to display a IE page in a view ,not popup ?

Hi! All

Question 1st:

I have create a html page by webdynpro,

I want display this page in a view ,

but when run this code,

the IE page popup ,

can you help me set the IE page in current view ?

public void wdDoInit()
  {
   //@@begin wdDoInit()
   String text = "<html><head></head><body>this is my test</body><html>";

   try
   {	
	
       IWDCachedWebResource resource = WDWebResource.getWebResource
       (
	    text.getBytes("UTF-8"), WDWebResourceType.UNKNOWN
       );

        resource.setResourceName("test.html");
        IWDWindow window = 
wdComponentAPI.getWindowManage().createNonModalExternalWindow(
        resource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()),  
        resource.getResourceName());

        window.show();

   }
    catch(Exception ex)
   { 
        wdComponentAPI.getMessageManager().reportException( new WDNonFatalException(ex), false );
   }
    
}

Question 2nd:

I have create a value context attribute under context.

it's name is "mywindow"

it's type is "com.sap.tc.webdynpro.services.session.api.IWDWindow"

Do you know how to display "mywindow" in a view ?

I try to put mywindow in a InputField or a IFrame,

but all failed !

Thanks!

Not what you were looking for? View more on this topic or Ask a question