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
singpolyma
Posts: 43
Registered: ‎11-15-2012
My Device: Q10
My Carrier: WIND

Get at ListView attachedObjects

Apologies if you saw this post in the other forum, but I thought it might get more traction here.

 

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?

Please use plain text.