11-15-2012 02:20 AM
kylefowler wrote:
Foursquare has a bunch of invocation support that we will be documenting closer to launch date.
really looking forward to this informations and also a preview app
want to integrate Foursquare into my Conference2Go-Applications which will also come to BB10
11-15-2012 03:45 PM
Although it says "type mismatch" but I ignored the error and started the application. it runs fine. it seems that it is a bug in the QML editor
11-16-2012 02:28 PM
Oh thanks, that works great!
Any idea why I can't send text from a property variant? Let's say I'm sending data to my QML page in the form "item.title"
I can display this text in a label like so,
Label{
id: testLabel
text: item.title
}if I set the data parameter in the InvokeActionItem to item.title I get nothing being sent to BBM. I've also tried converting it to a string using qsTr(item.title).
InvokeActionItem {
id: invokeTextBBM
query {
mimeType: "text/plain"
invokeTargetId: "sys.bbm.sharehandler"
invokeActionId: "bb.action.SHARE"
data: item.title
}
}
}Any thoughts?
11-16-2012 02:55 PM - edited 11-16-2012 02:55 PM
Values in the query are not dynamic. Use the onTriggered method to set values from runtime like this.
InvokeActionItem {
title: "Share Text Over BBM"
query {
mimeType: "text/plain"
invokeTargetId: "sys.bbm.sharehandler"
invokeActionId: "bb.action.SHARE"
data: "This is some text to share."
}
onTriggered: {
data = "Some new text"
}
}
This would cause "Some new text" to be sent. You can specify a variable or control in its place.
11-16-2012 04:25 PM
Thanks! That works great for text data ![]()
...not having the same luck with pictures and the uri parameter. Is it possible to set that as well using the onTriggered method? I've tried using this:
InvokeActionItem {
title: "Share "
query {
mimeType: "image/jpg"
invokeTargetId: "sys.bbm.sharehandler"
uri: "file:///accounts/1000/shared/camera/IMG_00000006. jpg"
invokeActionId: "bb.action.SHARE"
}
onTriggered: {
uri = "file:///accounts/1000/shared/camera/IMG_00000003. jpg"
}
}And it tries sending IMG_00000006.jpg
11-18-2012 04:43 PM
If i wanted to copy and image or text in application and share via bbm. is there a way to do it instaed of actual going to the particual item.
eg
i copy a some text in my app say a web from a web page
and then press bbm share text
instead of the below meassage i want the copied item
data: "This is some text to share."
11-20-2012 07:03 PM
That looks like a bug to me. I've logged the issue of the data element not updating here.
InvokeActionItem onTriggered doesn't update URI
11-21-2012 01:26 AM
Hello MSohm,
Thanks for sharing it.Very usefull.
One more query about PDF.So how to PDF Reader Invoke.
I try like this
"application/pdf
application/x-pdf"
But not get any sucess.So if any update or any mistake just sloved it asap.
Thanks.
11-26-2012 07:50 AM
Any Update?