cancel
Showing results for 
Search instead for 
Did you mean: 

How to use HTML Viewer on SAP Personas 3

former_member105930
Active Participant
0 Kudos

Hi all,

I am playing around with the HTML viewer and am using this simple script to test with:

tableHTML = '<html> <head></head><body>hello world</body></html>';
session.findById("wnd[0]/usr/htmlViewerPersonas_147688212816152").content = tableHTML;

I have the following whitelisted URLS:

/.*
(http|https):\/\/.*

However when I execute this script I get the Flavor contains nonwhitlelisted URLS message.

Any ideas on what I can do?

thanks,

Ian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

That all looks correct to me. I've just tried your script with those exact URL patterns in my whitelist and it works as expected.

That's not very helpful, sorry!

Steve.

former_member105930
Active Participant
0 Kudos

Hi Steve,

Believe it or not you did help me. I deleted my existing whitelist entry for /.* and manually re entered it, and it now works!

Now to get the table I copied to display in it..but that's another story !

Thanks Steve

Former Member

Might there have been an invisible space in there, perhaps? That's caught me out once. Anyway, glad you got it working!

former_member105930
Active Participant

Im guessing there was an invisible character there somewhere. And now, thanks to your blog:

https://blogs.sap.com/2015/11/26/custom-tables-in-personas-take-2/

I have now got my table copied and displayed in other screens, so all in all a very good day. 🙂

Answers (0)