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

Java Development

Reply
Developer
Posts: 43
Registered: ‎01-21-2009
My Device: Pearl 8100

Selecting multiple messages returns null context object

I have  added a menu on the main email list. When I am selecting one message and clicking the menu, the context object in the ApplicationMenuItem::Run(Context oContext) function is Message object but when I am selecting multiple message the context object is null. Is this a bug? Is there any work around?

I got this behavior on OS 4.2.

On OS 4.7 using storm 9530 simulator I am not able to select multiple messages so could not test.

Developer
Posts: 43
Registered: ‎01-21-2009
My Device: Pearl 8100

Re: Selecting multiple messages returns null context object

Any help is appreciated.

Developer
Posts: 43
Registered: ‎01-21-2009
My Device: Pearl 8100

Re: Selecting multiple messages returns null context object

As an alternative I am thinking to get all the selected mail items somehow from the GUI. I can get the Application by

 

UiApplication oUiApp = UiApplication.getUiApplication();

 

But how to proceed further?

Highlighted
Developer
Posts: 16,984
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Selecting multiple messages returns null context object

selecting multiple messages for the context menu is not supported.

you won't be able to retrieve the messages from the field itself as the used fields are internal.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter