Skip to Content
0
Nov 19, 2015 at 09:17 AM

Personas 3: HtmlViewer adding html content

161 Views

Hi all,

I am on Personas 3.

In SMEN transaction, I hid everything, created a button and a HtmlViewer control. I created a script with below code.

  debugger;
  var html = "<p>Sample Text.</p>";
  session.findById("wnd[0]/usr/htmlViewerPersonas_1447913779232").content = html;


I call this script whenever a button is pressed and expected htmlviewer to show "Sample Text". Somehow it is not working. Can anyone help?

->In F12, I see that iframe's body is empty as well.

->I ensured that my code gets executed by putting a "debugger"

Thanks

Krishna