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