cancel
Showing results for 
Search instead for 
Did you mean: 

Personas 3.0 SP02: session.utils.openUrl() does not open url in tab

Former Member
0 Kudos

Hi,

I have whitelist-checked the www.sap.com url, and add the following script

session.utils.openUrl(http://www.sap.com);

But it does not open the url in tab and the log shows "the url is non-whitelist". But I have in admin tool set the white list and the whitelist check went with green light.

Does anyone have idea what is likely wrong here? Thanks.

Dong Zhu

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Dong,


Did you check what openURL method accepts. Press CTRL+SPACE to see it as shown below

It expects string. So this will work:

session.utils.openUrl('http://www.sap.com');


If it doesn't then please open a message with us.


Regards,

Sushant

Former Member
0 Kudos

Hi Dong,

Even i tried and check the solution of Sushant and it works fine for me also. I think the issue is of Single quote inside the round bracket ('   ')

Try this once:

session.utils.openUrl('http://www.sap.com');

My URL Whitelist is show in below screenshot.

regards,

Vipul Koladia

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sushant and Vipul,

Many thanks for the reply. The error was due to the missing of quota mark - it should be a STRING used inside (). Set your answers as correct and helpful.

By the way, teh original JS code

window.open(http://www.sap.com);

works fine too. Can I understand that utils.openUrl() is calling window.open() to do the same job? How can I dig into util.opUrl() func to see the code?

Thx.

Br,

Dong