Skip to Content
author's profile photo Former Member
Former Member

Displaying formatted HTML : URGENT

Hi,

I have a RFC that gives as output formatted HTML to my webdynpro view and i need to display the same.

Now the IFrame in Webdynpro takes only static HTML and i cannot pass a string array of HTML's to it.

Can any one tell me how to make this work.

The only workaround that i can think of it to point the iFrame to a jsp and display the html inside the jsp.

Regards,

Balaji

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2004 at 04:10 AM

    Hi ,

    For example if i use the FM CONVERT_ITF_TO_HTML , i can convert sapscript to HTML. Now i want to display the same HTML in webdynpro. How do i achieve this.

    Regards,

    Balaji

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2004 at 04:20 AM

    Hi Balaji,

    you don't need a JSP, a servlet is sufficient, if the HTML data represents a complete HTML page, not only a fraction. Here's one possible way to achieve this:

    1. Store the HTML data in a file accessable by the servlet.

    2. Construct an URL to the servlet with at least one parameter pointing to the created file.

    3. Set this URL as the IFrame's source property. The IFrame "calls" the servlet.

    4. The servlet transports the data from the file specified in it's parameter list.

    Hope that helps.

    Regards

    Stefan

    PS: The IFrame UI element is no HTML viewer, so it's no surprise that you can't pass HTML data directly to it.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Stefan,

      My Webdynpro application is to be viewed through EP 5.0.

      So instead of going for a servlet i went in for a iView developed through the PDK because in that case atleast the SSO between the Webdynpro to the iView to SAP can be handled smoothly and easily.

      Thanks,

      Balaji