Skip to Content
avatar image
Former Member

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 15, 2008 at 11:30 AM

    Hi,

    Please add IFrame and pass the url of the html page to that Iframe UI element

    This will solve your problem

    Regards

    Ponnusamy

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI! Murtuza,

      when I use your code,

      1. getComponentInfo() have a redline under it, the message is

      "The method getComponentInfo is undefined for thee type IWDviewController"

      I can't solve by use click mouse right to improt.

      2. when I put an iframe in my view and set its source as my comtext "mywindow",

      "mywindow " type is

      "com.sap.tc.webdynpro.services.session.api.IWDWindow",

      I want select "mywindow" as source , but "mywindow" is no activate, can't select,

      Thanks!