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

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

Re: Move ActionItem from Onbar to Overflow and vise versa

I'm also doing this in some cases:

some ActionItems already added because they're always there

some ActinItems as attachedObjects

then add / remove depending on situation

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
Posts: 508
Registered: ‎01-19-2011
My Device: My Trusty Red Plane
My Carrier: Outer Space

Re: Move ActionItem from Onbar to Overflow and vise versa

[ Edited ]

yes, I changed the actions in the "onCompleted" call. here's my code (modified a bit, so I don't get in trouble Smiley Very Happy )


    onCreationCompleted: {
        var actionArray = [ soAction, faAction, moAction, geAction, sortAction ];
        if (hasPrivilege(402)) {
        if (hasPrivilege(403)) {
            actionArray.unshift(exDAction, exAction);
        myPage.actions = actionArray;


of course, it is not like your idea being dynamic, but maybe you can define an array 'playingActions' and 'notPlayingActions', and set it to your page as you need it?

I'm a bird from outer space. But I'm not flappy o.o
Posts: 47
Registered: ‎11-23-2010
My Device: Q10
My Carrier: Rogers

Re: Move ActionItem from Onbar to Overflow and vise versa

[ Edited ]

@pyth, Interesting idea, thx for sharing. I'm not sure if I'm going to use it, but definetely is worth to look at. It's always good to know how other developers deal with similar issues.