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
Retired
Posts: 249
Registered: ‎07-14-2008
My Device: Not Specified

Re: Edit a created contact using invocation

Tested and confirmed that this works:

InvokeRequest cardRequest;

    cardRequest.setTarget("sys.pim.contacts.card.composer");

    cardRequest.setAction("bb.action.EDIT");

    cardRequest.setMimeType("application/contact");

    cardRequest.setData(QByteArray::number(12)); // just a contact ID I know about.

 

invokeManager.invoke(...);

Developer
Posts: 16,997
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Edit a created contact using invocation

Ok, so the trick is to create an InvokeRequest instead of an InvokeQuery?
The parameters seem to be the same as in my initial post.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter