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: 230
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings
Accepted Solution

Call attachedobject from within the context menu

Dear developers


When I press an action in the contextmenu in my list, I want to open a sheet that is attached on my page. But when I try that, he keeps saying that he can't find that sheet. Is it correct to say that the contextmenu only knows the element where he is defined in? I thought that my call would be bubbled up until he found it, but that's not what it does.


I need that attachedobject also in my page, so it's not possible to define it in the same element as where my context menu is defined in.


Thanks in advance

BB10-OAuth: GitHub
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Call attachedobject from within the context menu

ListItemComponents have their own visibility scope. This thread discusses a similar issue and the workaround:



It's also possible to use this hack to keep a global pointer to the page:


Andrey Fidrya, @zmeyc on twitter