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

Adobe AIR Development

Reply
Developer
Posts: 223
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

How to detect MultiSelectAction cancel (close)

I want to implement a MultiSelectAction but after playing some time with it I can't figure how to detect the cancel button event to change the multiselect mode.

 

Is there any way to do it?

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Developer
Posts: 223
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: How to detect MultiSelectAction cancel (close)

Nobody using multiselect actions?

 

Isn't there any event to detect multiselect cancel?

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How to detect MultiSelectAction cancel (close)

I pingged someone to see if they can answer this for you.
BlackBerry Development Advisor
Posts: 172
Registered: ‎10-25-2010
My Device: Not Specified

Re: How to detect MultiSelectAction cancel (close)

There currently is not "CANCEL" event, but you will get ContextMenuEvent.CLOSING and ContextMenuEvent.CLOSED events when this happens. 

 

https://developer.blackberry.com/air/apis/bb10/qnx/fuse/ui/core/UIComponent.html#event:context_menu_...

 

You will probably have to check to see if an action was selected before these events to determine if cancel was pressed. 

 

I'll be the first to admitt that it's not ideal, and we should probably look at adding another event that specifically tells you that cancel was pressed to make things easier.

Developer
Posts: 223
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: How to detect MultiSelectAction cancel (close)

Thanks!

IT sounds good as a workarround Smiley Happy

Luckily, action event is dispatched before closing ones Smiley Tongue

 

Hope you finally add that cancel evet!

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords