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.
07-19-2012 07:55 AM
Can anyone point me to further resources and examples on how to use JsonDataAccess to parse certain json data and display it in a ListView?
I have been trying all sorts of methods and none work.
If I simply wanted to show a list of items that are clickable and display more information, would a QListDataModel be the right choice?
07-19-2012 09:42 AM
I've tried copying those examples but I still get issues.
I directly copied the code from: https://developer.blackberry.com/cascades/referenc
but I get the following issue:
../src/MenuHandler.cpp:71:66: error: no matching function for call to 'bb::data::JsonDataAccess::load(QString)'
even though in the API it exists:
QVariant load (const QString &filePath)
Here is my code:
QVariant mainList = jda.load(QString::fromStdString("test.json"));
GroupDataModel *model = new GroupDataModel(QStringList() << "region");
myEventsLSTVW = new ListView();
Any suggestions? Thanks!
07-19-2012 12:29 PM
+1 for this issue. Just imported an app created in Beta 1, made the changes recommended in the Upgrade To Beta 2 guide, and I get the error undefined reference to `bb::data::JsonDataAccess::JsonDataAccess(QObject*
08-28-2012 05:34 AM - edited 08-28-2012 05:35 AM
You should add LIBS += -lbbdata to ur .pro file in ur project all the classes regarding JsonDataAccess are stored in bb::data namespace.so inorder to access these classes u need to add LIBS += -lbbdata to ur .pro file in ur application.