on 10-17-2015 9:20 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.