on 09-08-2016 9:30 PM
Hi experts,
i need some help i want to know how i can point to an URL whit sap.m.Tile
thank you
Regards,
Simón.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Simon,
you mean you want to pass the url from the tile to the press Event function, if yes than you need to do like below : its an example you can change according to your tile ... i am providing my working example:
view :
<mvc:View controllerName="alcopaPortalManagement.controller.Main" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:mvc="sap.ui.core.mvc"
class="sapUiSizeCompact"
xmlns="sap.m"
xmlns:app="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"
>
<Page showHeader="false">
<content>
<TileContainer id="tileContainer" tiles="{/TileCollection}" >
<StandardTile
press="onPressTile"
icon="sap-icon://{icon}"
type="{type}"
number="{number}"
app:url="{url}"
numberUnit="{numberUnit}"
title="{title}"
info="{info}"
infoState="{infoState}" />
</TileContainer>
</content>
</Page>
</mvc:View>
controller
onPressTile:function(oEvent){
// var src = oEvent.getSource();
var url = oEvent.getSource().data("url");
window.open(url,'_blank');
}
thanks
Viplove
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.