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

Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: Sharing framework in Beta3


Do you have any idea about we need to handle click event of List?

Posts: 102
Registered: ‎06-03-2012
My Device: Playbook
My Carrier: *

Re: Sharing framework in Beta3

I don't think you have. First that would be strange Smiley Happy Secondly how would you do that? That popup window is probably not even in your process.

BB Apps: Pattern :: Plonk
Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: Sharing framework in Beta3

Ya that i am thinking. it is not possible to handle list view click as we not create list view in application.

Posts: 144
Registered: ‎12-18-2010
My Device: Limited Edition Z10 & Blackberry Playbook
My Carrier: Rogers Wireless

Re: Sharing framework in Beta3

[ Edited ]



I downloaded the project you uploaded and I was able to get it to work with some slight modifications.


Here is what I have in my working main.qml


// Default empty project template
import bb.cascades 1.0

// creates one page with a label

Page {
    Container {
        layout: DockLayout {
        Button {
            attachedObjects: [
                Invocation {
                    id: invoke
                    query: InvokeQuery {
                        mimeType: "image/png"
                        uri: "images/icon.png"
                        invokeActionId: "bb.action.SHARE"
            onClicked: {

 You can see above that I changed the value of uri: ( changes in Bold ), and I also changed the file name to icon.png because the filename you were using did not exist in the project you provided. The path that you were using before, file:///images/icon.png, was incorrect and didn't exist. 


It appears that the Invocation framework checks to see if the content exists and when it doesn't find it, it just disappears instead of giving any sort of error or feedback message.  Hope that helps you and anyone else who might be having trouble.



Playbook Apps:
Touch Painter, LinkShrink

BB10 Apps:
NoteToSelf , LinkShrink