cancel
Showing results for 
Search instead for 
Did you mean: 

Iframe question

Former Member
0 Kudos

Hi

I need this info urgently, can any one help me

in

how to set Iframe source property dynamically

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

Follow these steps

Create a context attribute of type String and bind it to the Source property of the iFrame in the layout. Populate this context attribute with an URL dynamically and the iFrame will show it.

Regards

Dhinakar

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create a value attribute in your context, say UrlSource of type string. Bind this attribute to the Source property of the IFrame.

Then you can use this code to set it dynamically:


String urlString = "http://www.google.com"; //or anything that you want.
wdContext.currentContextElement().setUrlSource(urlString);

Regards,

Satyajit.