cancel
Showing results for 
Search instead for 
Did you mean: 

Call Website dynamically from SAP Persona 3.0

dipen_pandya
Contributor
0 Kudos

Dear All ,

I need to write a script in which ,i can pass url to a website button and open the page in another page.

Please guide asap.

Best Regards,

Dipen

Accepted Solutions (1)

Accepted Solutions (1)

Carifaine
Active Participant
0 Kudos

Hi Dipen,

you can do this without the website button. Simply create a textfield and a script button. A simple script like this reads the url from your text field and opens a new tab (might differ depending on your browser):

var url = session.findById("<Text-Field-ID>").text;

window.open(url,'_blank');

@Edit:

just found this while searching for some other information:

session.utils.openUrl("www.sap.com"); -> Scripting Utility Methods - SAP Imagineering - SCN Wiki


You can simply replace "www.sap.com" with the variable.

Regards,

Christoph

dipen_pandya
Contributor
0 Kudos

Thanks a lot. It worked.

Answers (0)