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
New Contributor
Posts: 5
Registered: ‎07-07-2013
My Device: developer
My Carrier: developer
Accepted Solution

Onload function

Hello Guys,

 

I just want to know if cascades have any function like Javascript windows.onload. I don't means that onCreationCompleted.

Because the  onCreationCompleted function just trigger once! 

 

ok let me show you a example.

 

I create a NavPane. I need some function every time pop() back and the function will be trigged. For me the  onCreationCompleted is not working like that way.

 

Any suggestion? need some help!

Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Onload function

take a look at

 

onPopTransitionEnded()

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
New Contributor
Posts: 5
Registered: ‎07-07-2013
My Device: developer
My Carrier: developer

Re: Onload function

Thank you so much for the quick replay! Smiley Happy
Developer
Posts: 109
Registered: ‎08-23-2012
My Device: Blackberry Z10
My Carrier: TATA DOCOMO

Re: Onload function

You can override the default functionality of back button

 

paneProperties: NavigationPaneProperties {
backButton: ActionItem {
onTriggered: {
yourNavPaneID.pop();
}
}
}

Dharmender Singh
Highlighted
Developer
Posts: 109
Registered: ‎08-23-2012
My Device: Blackberry Z10
My Carrier: TATA DOCOMO

Re: Onload function

Great to hear from you that it solved your problem.
Feel free to press like if this solve your problem.
Dharmender Singh