Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Call Website dynamically from SAP Persona 3.0

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

Former Member
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question