on 01-21-2016 9:49 AM
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
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
The whitelist uses regular ABAP expressions. See this document for further details about how to build the correct expressions.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.