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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
smartek
Posts: 274
Registered: ‎05-31-2012
My Carrier: o2
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: 5,618
Registered: ‎12-08-2010
My Carrier: none

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 -- (PlayBook 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: 274
Registered: ‎05-31-2012
My Carrier: o2

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 Carrier: Roger

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: 5,618
Registered: ‎12-08-2010
My Carrier: none

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 -- (PlayBook 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: 274
Registered: ‎05-31-2012
My Carrier: o2

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: 610
Registered: ‎03-03-2011
My Carrier: Mobitel

Re: why my actions are there two times?

If you remove ActionBar.placement: ActionBarPlacement.OnBar, it will appear only once. Heavy bug :-(
--------------------------------------------------------

Follow our developer blog on Slovenia BlackBerry Developer Group!
Please use plain text.
Developer
peter9477
Posts: 5,618
Registered: ‎12-08-2010
My Carrier: none

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 -- (PlayBook 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: 610
Registered: ‎03-03-2011
My Carrier: Mobitel

Re: why my actions are there two times?

Strange :-(
--------------------------------------------------------

Follow our developer blog on Slovenia BlackBerry Developer Group!
Please use plain text.
Developer
soaman
Posts: 610
Registered: ‎03-03-2011
My Carrier: Mobitel

Re: why my actions are there two times?

Are you using that for all actions?
--------------------------------------------------------

Follow our developer blog on Slovenia BlackBerry Developer Group!
Please use plain text.