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

Web and WebWorks Development

Reply
Contributor
Posts: 11
Registered: ‎09-01-2012
My Device: Z10 / PlayBook
My Carrier: Telus
Accepted Solution

Invoke Remember with multiple key-value pairs

I am attempting to invoke the Remember app and I am trying to send across a title and a due date. The issue is I don't know the format for sending multiple data elements. Can anyone help me with the format I should use to get a remember entry created with a title and a due date?

 

function invokeRemember(someTitle,someDate) {
blackberry.invoke.invoke({
  target: "sys.pim.remember.composer",
  action: "bb.action.ADD",
  uri: "remember://notebookentry?title=" + someTitle + "&duedate=" + someDate;
}, onInvokeSuccess, onInvokeError);
}

BlackBerry Development Advisor
Posts: 762
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Invoke Remember with multiple key-value pairs

I think that the "Ivoking Core Applications" page shows how to do this: https://developer.blackberry.com/html5/documentation/remember.html

 

Looks like you can send the following in the URI field:

 

You can also add the following key-value pairs by adding a question mark (?) after the URI:

title=<ENTRY TITLE>
description=<ENTRY DESCRIPTION>
duedate=<# SECONDS SINCE EPOCH>
status=NotActionable, Completed, NotCompleted
notebookid=<ACCOUNT KEY>:<NOTEBOOK KEY>
tags=<COMMA-SEPARATED TAG LIST>

 

Contributor
Posts: 11
Registered: ‎09-01-2012
My Device: Z10 / PlayBook
My Carrier: Telus

Re: Invoke Remember with multiple key-value pairs

Thanks, I wasn't percent encoding.