on 11-19-2015 9:17 AM
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
I would expect that to work. This works for me:
session.findById("wnd[0]/usr/htmlViewerPersonas_1447866610072").content
= "<p>Hello world</p>";
Steve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, this now works fine for me, in both SP02 and SP03, and has done for a while. I do keep pretty up to date with kernel patches, though - maybe try a kernel update and see if that helps. If not, I'd suggest creating an OSS incident and get SAP to look at it. It is *supposed* to work!
Steve.
Hello Steve,
For me it says the content cannot be displayed in a frame. Not sure how to check which site will play in HTML viewer. I tried SAP.COM and Youtube. I do have added the /.* entries in my URL Whitelist. Anything else I should be checking? I am on SP03 Kernel level 742 Sup.Pkg lvl 401.
Thanks,
AShwini
If you are displaying external sites via their URLs, then you need to add matching URL patterns to the whitelist. This pattern will match *everything*: (http|https):\/\/.*
The point of the whitelist, though, is to restrict what can be displayed, so you may want to not use that pattern, but something more specific. I might use (http|https):\/\/www\.warwick\.ac\.uk\/.* to restrict just to my company websites, for example.
Steve.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.