on 11-13-2015 11:56 AM
Hi,
How can I open a popup (opening a new web browser) when I click on a link of an url (open the website of the url)?
My link is defined like this:
<content>
<ObjectHeader title="{AccountDetails>/fullName}" xmlns="sap.m">
<attributes>
<ObjectAttribute active="false"
text="{AccountAddress>/street} {AccountAddress>/houseNumber}, {AccountAddress>/postcode} {AccountAddress>/city}"/>
<ObjectAttribute active="false" text="{AccountAddress>/phone}"/>
<ObjectAttribute active="true" text="{AccountAddress>/email}" press="onClickEmail"/>
<ObjectAttribute active="true" text="{AccountAddress>/website}" press="onClickWebsite"/>
</attributes>
</ObjectHeader>
...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To all SAP PEOPLE you can also explore the answer from "https://sapui5.hana.ondemand.com/1.117.0/#/entity/sap.m.URLHelper/sample/sap.m.sample.UrlHelper"
it will definitely helps you I myself tried it.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi guys,
I did it as follow:
_getVal: function(evt) {
return sap.ui.getCore().byId(evt.getParameter("id")).mProperties.text;
},
in event:
onClickWebsite: function(oEvent) {
sap.m.URLHelper.redirect(this._getVal(oEvent), true);
},
thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check this example. its should be useful Example for Open another window
Kindly let me know if you need any more information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andy,
just use a standard JS-Method like this:
window.open(sURL);
Regards
Dominik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.