Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 50
Registered: ‎11-15-2012
My Device: Q10
My Carrier: WIND

Get at ListView attachedObjects

In the following code:


            listItemComponents: [
               ListItemComponent {
                  type: "item"

                  StandardListItem {
                     title: ListItemData.title
                     description: Qt.formatDateTime(ListItemData.pubDate)

                     attachedObjects: [
                        Invocation {
                           id: invoke

                           query: InvokeQuery {
                              uri: ListItemData.link

            onTriggered: {
               var selectedItem = dataModel.data(indexPath);

How can I get at the Invocation attached to the StandardListItem from onTriggered?