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

Reply
Developer
martin78
Posts: 27
Registered: ‎05-15-2012
My Device: Dev Alpha B

InvokeActionItem: setting data

Hello,

 

I know there is another thread on the forums relating to InvokeActionItems, but my question is different. I have the following InvokeActionItem and wish to customize the 'data' associated with it. What would be the most appropriate way to do this? Would it be wise to customize the 'data' member when 'onTriggered' is called, or is this too late? Should I use a custom "handler'? My data is obviously conditional to the item on which the InvokeActionItem is brought up.

 

InvokeActionItem {
    id: invokeActionItem
    objectName: "invokeActionItem"
    query {
        mimeType: "text/plain"
        data: MY_CUSTOM_DATA
    }
}

 

Thanks!

 

Martin

 

 

 

 

------------------------------------------
Macadamian Technologies Inc.
http://www.macadamian.com/
Developer
ekke
Posts: 1,571
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: InvokeActionItem: setting data

you should set the data 'on triggered'

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Regular Contributor
ametller
Posts: 54
Registered: ‎07-15-2010
My Device: Not Specified

Re: InvokeActionItem: setting data

Check this post. This is how I managed to do it (I was able to do it only from C++):

 

http://supportforums.blackberry.com/t5/Cascades-Development/Invokation-framework-Problem-sharing-sim...