Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 19, 2015 at 08:23 AM

    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

    Add comment
    10|10000 characters needed characters exceeded