01-10-2013 11:09 AM
I am trying to edit a contact i just created with the native card.
I am following the guidelines from
https://developer.blackberry.com/cascades/document
Contact createdContact = contactService.createContact(builder, true); qDebug() << "created Contact, id " << createdContact.id(); //2. invoke the contact edit card with the created contact invocation = Invocation::create(InvokeQuery::create().parent(this).mimeType("application/vnd.blackberry.string.co ntact, application/contact").data(QByteArray::number(crea tedContact.id())).invokeTargetId("sys.pim.contacts .card.composer").invokeActionId("bb.action.EDIT")) ; invokeActionId = "bb.action.EDIT"; //store the action for onArmed() slot connect(invocation, SIGNAL(armed()), this, SLOT(onArmed())); connect(invocation, SIGNAL(finished()), invocation, SLOT(deleteLater()));
I get this output:
Debug: 16:06:51.464 created Contact, id 261 Warning: 16:06:51.485 InvocationWrapper::onQueryFinished: no matching result from Menu Service for query mimeType="application/vnd.blackberry.string.contact, application/contact" uri=QUrl("") data= "261" metadata= QMap() perimeter= 0 action= "bb.action.EDIT" target= "sys.pim.contacts.card.composer" invokerIncluded= false Warning: 16:06:51.488 InvocationPrivate::onQueryResolved: no result matching query, no armed signal sent.
What am i doing wrong?
01-16-2013 12:12 PM
Same thing.
InvocationWrapper::onQueryFinished: no matching result from Menu Service for query mimeType="application/vnd.blackberry.string.contact" uri=QUrl("") data= "24" metadata= QMap() perimeter= 0 action= "bb.action.EDIT" target= "sys.pim.contacts.card.composer" invokerIncluded= false InvocationPrivate::onQueryResolved: no result matching query, no armed signal sent.
Can not use bb.action.CREATE for sys.pim.contacts.card.composer and bb.action.ADDTOCONTACT as well.
01-16-2013 09:55 PM
You cannot use two mime types at the same time. You only need to use one. I would use the first one from the docs for edit.
Shadid
01-17-2013 02:21 AM
01-17-2013 02:54 AM
01-17-2013 12:45 PM
Let me create a sample and post here. Need some time. When do you guys need it? Other than ASAP? ![]()
01-17-2013 12:55 PM
As you well know, it's always ASAP
Now it is because of the BFB deadline. Maybe you can just show some samples, like a correct InvokeAction or Builder command?
Thank you!
01-18-2013 03:07 AM
a week ago
I am trying to call it from QML and it is not working.
actions: [
InvokeActionItem {
title: qsTr("CreateContact")
ActionBar.placement: ActionBarPlacement.OnBar
query {
invokeTargetId: "sys.pim.contacts.app"
invokeActionId: "bb.action.ADDTOCONTACT"
mimeType: "application/vnd.blackberry.string.phone"
}
onTriggered: {
data: "999451624"
}
}
]
any idea why?