cancel
Showing results for 
Search instead for 
Did you mean: 

How to Read Title Text in View Controller

Former Member
0 Kudos

Hi All,

i want to Configure one App for Multiple Tiles in Fiori Launchpad , now based on Different Tile Click i want to Perform Open Different Websites.

now my Question is how can i know that which tile is clicked in View Controller Init Method

Please Let me know If any one Has Idea about it.

Thanks

Ashish

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ashish,

You will not get it in Init function of controller.

First create a press event in your tile and define the same in Controller.

For example:

<TileContainer>

     <StandardTile press="onTilePress" title= "abc"/>

     <StandardTile press="onTilePress" title= "pqr"/>

</TileContainer>


In Controller:


onTilePress: function(oEvent){


var tileTitle = oEvent.getSource().getBinding("title").getContext().getProperty();

}


You will get Tile Title in tileTitle variable.


Regards,

Arpit Agrawal

Former Member
0 Kudos

Hi Arpit,

Thanks for yor Reply but  i am not talking about Tile in View i am Talking about Tile in Fiori launchpad and its Text , how to get in View Controller

junwu
Active Contributor
0 Kudos

Embedding SAPUI5 Applications into the SAP Fiori Launchpad Application Container - SAP NetWeaver Use...

this.getComponentData( ).startupParameters

should give u the paramter