Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8594

Re: How to add model for Detail Page

$
0
0

Hi Moulika,

 

 

If you raise an event, you properly want to use  source data in your event handler. A  easy way to do this is using the .data property of your UI control.

Event Raiser

var oContext

= new Object();

oContext.attribute = “value”;

 

var oLink= new sap.ui.commons.Link({text: “Inschrijven”})

 

.attachPress(oController.onPressCourseInfoLink)

 

.data

(“oContextSource

“, oContext

, false);

Event Handler

onPressCourseInfoLink:function(oEvent){

var oContext

= oEvent.oSource.data(“oContextSource

“);

}

Now you can use the data you set in the UI control in the event handler


Viewing all articles
Browse latest Browse all 8594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>