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
smartek
Posts: 281
Registered: ‎05-31-2012
My Device: Playbook
Accepted Solution

why my actions are there two times?

hi, i have some actions on a page, like this:

actions: [
	ActionItem {
		title: "Settings"
		ActionBar.placement: ActionBarPlacement.OnBar
		onTriggered: {
			navigationPane.push(settingsPage)
		}
	}
]

 but on my page i see the settings two times then.

how to fix this?

Plase "+Like" my post if it was helpful.
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: why my actions are there two times?

Do you have two such places where you are defining that ActionItem, perhaps in different .qml files? If so, try changing the title so it's different in each one, to see if you can identify where each entry is coming from.

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!
Please use plain text.
Developer
smartek
Posts: 281
Registered: ‎05-31-2012
My Device: Playbook

Re: why my actions are there two times?

no, just in one!

Plase "+Like" my post if it was helpful.
Please use plain text.
Developer
noahhuang
Posts: 100
Registered: ‎10-01-2012
My Device: BB10 Dev Alpha

Re: why my actions are there two times?

I have the same problem. I am sure I only have one.

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: why my actions are there two times?

Do you see this at all times, or only after you've navigated through your app a bit?

Can either of you reduce it down to a simple example, with all the unrelated parts removed? Usually when you try to do that, you'll actually find the problem yourself. I have lots of pages with ActionItems defined that way and no duplication seen yet.

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!
Please use plain text.
Developer
smartek
Posts: 281
Registered: ‎05-31-2012
My Device: Playbook

Re: why my actions are there two times?


peter9477 wrote:
Do you see this at all times, or only after you've navigated through your app a bit?

Yes. Even if I rebuild the App and remove it from the Device.

Plase "+Like" my post if it was helpful.
Please use plain text.
Developer
soaman
Posts: 848
Registered: ‎03-03-2011
My Device: Z10

Re: why my actions are there two times?

If you remove ActionBar.placement: ActionBarPlacement.OnBar, it will appear only once. Heavy bug :-(
--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: why my actions are there two times?

I have ActionBar.placement: ActionBarPlacement.OnBar for my apps, and do not see any duplication.

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!
Please use plain text.
Developer
soaman
Posts: 848
Registered: ‎03-03-2011
My Device: Z10

Re: why my actions are there two times?

Strange :-(
--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Please use plain text.
Developer
soaman
Posts: 848
Registered: ‎03-03-2011
My Device: Z10

Re: why my actions are there two times?

Are you using that for all actions?
--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Please use plain text.