on 06-22-2017 8:36 PM
I had added a button on NotificationListItem and assigned the press event"onRejectPress" and there is a "onListItemPress" also. When I press the line I can goto the function onListItemPress and get the title contants through "oEvent.getSource().getTitle()"
But when I click the button "Reject" I can't get the title contant through "oEvent.getSource().getTitle()". Who can tell me how can I get the title contants in function() onRejectPress". Thank you~
As you can see, title is not a property for Reject Button control, it is having text property. When you tried to get the title from "onListItemPress" method, you got just because you had the event for NotificationListItem control which has title property. Here you want to get the title value of NotificationListItem control from button event which is other control. So you can achieve via bindingcontext from button event where you will get the object of clicked record.
"oEvent.getSource().getBindingContext().getObject().Vid"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
oEvent.getSource().getBindingContext().getObject().Vid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.