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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Super Contributor
Meghasanghvi
Posts: 301
Registered: ‎08-10-2010

Re: Sharing framework in Beta3

Hi,

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

Please use plain text.
Developer
connyhald
Posts: 101
Registered: ‎06-03-2012
My Carrier: *

Re: Sharing framework in Beta3

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

-----------
http://kodira.de
BB Apps: Pattern :: Plonk
Please use plain text.
Super Contributor
Meghasanghvi
Posts: 301
Registered: ‎08-10-2010

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.

Please use plain text.
Trusted Contributor
Zymatic
Posts: 110
Registered: ‎12-18-2010
My Carrier: Rogers Wireless

Re: Sharing framework in Beta3

[ Edited ]

Meghasanghvi,

 

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: {
                invoke.trigger("bb.action.SHARE")
            }
        }
    }
}

 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.

 

Zymatic

Please use plain text.