Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
08-14-2012 09:54 AM
I want to pass the values of a listItem to a sheet using the context menu but I cannot access the property variant from within the action item.
I have a listview and within the listView I am using StandardListItem.
Then within the StandardListItem I have defined my contextActions.
If I try to assign a value I receive the error: Error: Invalid write to global property "_contentView"
And if I try to use the property I receive the error: ReferenceError: Can't find variable: _contentView
Here is the relevent section of my QML.
property variant _contentView
// The data model used defined in the attachedObjects for the list.
title: "View Details"
var chosenItem = ListItemData;
_contentView = chosenItem;
//editProjectSheet.visible = true;
There are no problems accessing the property variant from the listview signals such as onSelectionChanged so why not within the actionItem?
Your help is appreciated, Thx.
Solved! Go to Solution.
08-14-2012 10:16 AM
08-14-2012 02:10 PM
08-14-2012 04:02 PM
Hmm I just noticed this, I have this in my page's actionItem:
and that works fine, it passes the contentView to the function, does that mean that I am infact accessing it in the way you need? Or is this different.