cancel
Showing results for 
Search instead for 
Did you mean: 

Open a new browser window when clicking on a link

Former Member
0 Kudos

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>

...

View Entire Topic
saivellanki
Active Contributor
0 Kudos

Hi Andy,

You can use sap.m.URLHelper -  SAPUI5 Explored

Regards,

Sai Vellanki.