Skip to Content
author's profile photo Former Member
Former Member

sap.m.Tile

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 09, 2016 at 06:04 AM

    Hey Simon,

    will this help?

    SAPUI5 sap.m.Tile example gbvaibhav

    regards

    GB

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.