cancel
Showing results for 
Search instead for 
Did you mean: 

Rendering Html pages in webdynpro

venkatakalyan_karanam
Active Contributor
0 Kudos

Hi experts

I have a requirement like this.

I have some html pages in my application.

When I run the application first i need to Show the default html pages to the user with content in one View of webdynpro.

In that view i have a button Update when i click this button the next View appears with some checkboxes each check box refers to a html pages and submit button.When user selects these check boxes and submit the form contains check boxes then the application navigates to the other view showing the selected html pages and default html pages.

Can you please guide me in this scenario.Its very urgent requirement for me.

Regards

kalyan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

For the first page, you can create an iframe with the reference filed of the Iframe as the HTML file. For the next view, as u said it has checkboxes, u can pass value of the selected checkbox to a different view which already has an IFrame and the reference of the Iframe mapped to a context. As and When u select any of ur checkboxes, u can assign the reference of the IFrame dynamically while navigation.

In this way, u can easily embed HTML pages in your Web Dynpro applications.

Please let me know if u need any further help.

Let me know if this works.

Thanks and regards

Gita

Former Member
0 Kudos

Hi Gita,

I tried it in the same way.

but the problem is, where should store that html page?

in Iframe when i click on source property it is promting to context, therei have created some context attribute of type string.

what i have to do next, where can mention about my html file..?

do i need to set context value with that file name or what..?

please explain the steps clearly..

Thanks in advance.

Regards,

Bala

Former Member
0 Kudos

store html page in

src->mine->component-> <your component name>

how to access url :

url =

WDURLGenerator.getAbsoluteWebResourceURL(

wdComponentAPI.getComponent().getDeployableObjectPart(),

<html file name>);

set context varriable to URL and assign as iframe source

hope this will help

Answers (2)

Answers (2)

venkatakalyan_karanam
Active Contributor
0 Kudos

Hi Rahul

Thanks ,your code helps me to get the html page in webdynpro.

Regards

Kalyan

Former Member
0 Kudos

could you please help to me how to add an HTML page in WDA. I have used Iframe controle and added the HTML page and associated image in MIME, But it is giving the 404 error.

Could you please help me to correct it.

venkatakalyan_karanam
Active Contributor
0 Kudos

Hi Gita

Thank you very much ,i have got the display of html page in webdynpro

Thanks a lot.

Kalyan