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: 188
Registered: ‎09-03-2012
My Device: Blackberry 10

2 sheets, each with a different list view as attached object the same qml

I am wondering if anyone successfully have 2 sheets, each with a different list view as attached objects in the 1 qml?

 

I find that if I try to load open them, only 1 has the list view populated. The other one is empty.

 


For example: I have test.qml.Test.qml has 2 attached objects: sheet1 and sheet2. I call sheet1.open and sheet2.open. Only one of the 2 sheet will have the listview populated.

Highlighted
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: 2 sheets, each with a different list view as attached object the same qml

I haven't tried that specifically, but posting sample code is always helpful to let us see what's going on.

Why would you have the ListView in attachedObjects, however? Don't you want it to be visible?

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!