cancel
Showing results for 
Search instead for 
Did you mean: 

Personas 3.0 SP02 PL300: HTMLViewer is not shown

Former Member
0 Kudos

Hi,

I embedded a GoogleMap in my htmlviewer. The map is shown in the "Editing mode", but when in normal mode, the htmlviewer is not shown in the flavor UI. I tried to call .show() in a JS button, doen't help.

Is this a known bug in SP02 PL300?

Br,

Dong Zhu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Thanks to the reply.

For the Google map example, the unique check is to validate the 'key' numbers.

By the way, there will be more parameter in the url to mark the locations like

https://.....?key=123456789&origin=myHome&destination=myOffice

so the whitelist for teh above complete url check which is OK in my system is:

.*\Q123456789\E.*

With this check, any change in the key will cause the url check failure - thus the map is not displayed.

br,

Dong

See pic below:

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Thanks to Steve and Tamas for the tips.

For the benefits to other people, let's take a specific url of Google map example below (I just made up the key numbers):

https://www.google.com/maps/embed/v1/directions?key=123456789

Can anyone give a VALID (pls checked in SAP Personas Whitelist Check first) RegExp for uniquely validating this url only?

Thanks.

Dong Zhu

Former Member
0 Kudos

If you want to validate that URL exactly, and only that, then just put the literal URL in the whitelist. You will need to escape (with a backslash) any special characters. What are they? See the document reference above by Tamas, but to be safe, escape all punctuation! So this works and matches your exact URL:


https:\/\/www\.google\.com\/maps\/embed\/v1\/directions\?key\=123456789

At least, it does in my system

Steve.

Former Member
0 Kudos

Hi Steve,

Thanks for your input. I think I didn't escape all the symboals in the original url.

If I just want to uniquely identify the url, I was looking for a bit more simple way (as in my reply) but in general your answer would be easier to do. :-). LIKE it.

Br,

Dong

Former Member
0 Kudos

This sounds like a URL whitelist problem to me. Have you used the whitelist checker on the URL you are using? Could you post the URL and your whitelist entries?

Steve.

Former Member
0 Kudos

I have set the following in whitelist:

Whitelist-id         URL
 

DZ                      *

But without url, shouldn't a htmlviewer control be visible on top of the user area of UI? To me lit looks like teh control is hidden. Even go inside Editing mode, only if I click the right place, can I see the control. Otherwise, it is hidden too.

Dong

Former Member
0 Kudos

Does the whitelist checker work for your Google Maps URL with that pattern? I would expect not.

The pattern that matches all URLs is "(http|https):\/\/.*" (or maybe simply ".*"). Try changing it and see if that helps.

Steve.

Former Member
0 Kudos

Hi Steve,

Thanks for your helpful tip. Set as Helpful.

I found (.*) is working. But according to SAP, the following should be OK too, but they were not somehow.

(http|https)://*

(http|htpps):\/\/*

Any idea why? Thanks.

Dong

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

The whitelist uses regular ABAP expressions. See this document for further details about how to build the correct expressions.