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
Posts: 45
Registered: ‎01-18-2013
My Device: 9000
My Carrier: CMCC

How to invoke Remember Card with attachment files?

hi,everyone:

I want to invoke the core application remember card with a file as attachment,how to do?The document at 

http://developer.blackberry.com/cascades/documentation/device_platform/invocation/remember.html

is so confusing!

please help me out.

Developer
Posts: 230
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: How to invoke Remember Card with attachment files?

InvokeManager invokeManager;
QVariantMap meta; meta.insert("title", "The title of the entry"); InvokeRequest request; request.setTarget("sys.pim.remember.composer"); request.setAction("bb.action.ADD"); request.setMetadata(meta); request.setUri(QUrl("file:///path/to/image.png")); InvokeTargetReply *reply = invokeManager.invoke(request);

 Try this piece of code

______________________________________________________
BB10-OAuth: GitHub
Developer
Posts: 45
Registered: ‎01-18-2013
My Device: 9000
My Carrier: CMCC

Re: How to invoke Remember Card with attachment files?

I have tried this piece of code,but it did not work.It invoked a blank sheet and there is nothing on it.
Developer
Posts: 45
Registered: ‎01-18-2013
My Device: 9000
My Carrier: CMCC

Re: How to invoke Remember Card with attachment files?

somebody help