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
Regular Contributor
Posts: 51
Registered: ‎08-07-2013
My Device: blackberry z10
My Carrier: asif

Re: List view group data model

how im qualify navigationPane ID within listview?

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: List view group data model

[ Edited ]

If you are confused about how to get the correct qualification then the best thing is just to call a function then that function will be in scope of the NavPane...

 

Page {
    function pushPage(passedItemData) {
        var showDetail = productDetailPageID.createObject();
        showDetail.myProfileData=passedItemData
        navigationPane.push(showDetail);
    }

    ListView {

    [ ... ]

    onTriggered: {
         var chosenItem = dataModel.data(indexPath);
         pushPage(chosenItem);
    }

 

 

 

 

 

 


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: List view group data model

I've just read @simon_hain's posting and these are also good suggestions.

 

So there are many ways to achieve what you are trying to do, using signals is another, up to you which one you are more comfortable with.


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Regular Contributor
Posts: 51
Registered: ‎08-07-2013
My Device: blackberry z10
My Carrier: asif

Re: List view group data model

error found 

can't found navigationPane

but navigationPane declar top of the page.

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: List view group data model

Please post the code you have got so far.

If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.