Welcome!

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

Reply
Developer
Posts: 48
Registered: ‎11-15-2012
My Device: Q10

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);
               invoc.trigger("bb.action.OPEN");
            }


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