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: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Show test in text page problem

Hello i want to show same text in next page using  property alias But i am not able to do that. can you please help me.

Here is my first page

import bb.cascades 1.0
 
Page {
    Container {
       property alias pp:idlabel.text
        Label {
            id: labelID
            text: pp
        }
    }
}

 

// Default empty project template
import bb.cascades 1.0

NavigationPane {
    id: navigationPane
    Page {
        Container {
       
            Label {
                id :idlabel
                text: "First page"
            }
        }
 
        actions: [
            ActionItem {
                title: "Next page"
                ActionBar.placement: ActionBarPlacement.OnBar
                onTriggered: {
                    var page = pageDefinition.createObject();
                    navigationPane.push(page);
                }
 
                attachedObjects: ComponentDefinition {
                    id: pageDefinition;
                    source: "secondpage.qml"
                }
            }
        ]
    }
    onPopTransitionEnded: { page.destroy(); }
}

 Here is my second page .

 

can you please explain how to do that.?