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

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


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

Re: Sharing framework in Beta3

Hi,

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

Developer
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.

-----------
http://kodira.de
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.

Highlighted
Developer
Posts: 144
Registered: ‎12-18-2010
My Device: Limited Edition Z10 & Blackberry Playbook
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

Playbook Apps:
Touch Painter, LinkShrink

BB10 Apps:
NoteToSelf , LinkShrink