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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Trusted Contributor
AllSystemGo
Posts: 137
Registered: ‎11-23-2010
My Carrier: Rogers
Accepted Solution

JsonDataAccess

I don't know if it's only me but for some reason this code 

bb::data::JsonDataAccess ja;
QVariant jsonva = ja.loadFromBuffer(info);

 doesn't work no more since I moved to Beta 2. What changed since Beta1 -> Beta2 ?

 

Thank you

Please use plain text.
Developer
soaman
Posts: 610
Registered: ‎03-03-2011
My Carrier: Mobitel

Re: JsonDataAccess

Open .pro file and add line:

LIBS += -lbbdata

 

--------------------------------------------------------

Follow our developer blog on Slovenia BlackBerry Developer Group!
Please use plain text.
Trusted Contributor
AllSystemGo
Posts: 137
Registered: ‎11-23-2010
My Carrier: Rogers

Re: JsonDataAccess

Thank you for your answer soaman. Just for me Information, how could I have know that this needed to be in my pro file? Was there a error message that I should have look at before posting?

Please use plain text.
BlackBerry Development Advisor
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Carrier: developer

Re: JsonDataAccess

1. There should have been a link error message about unresolved method or variable.  It's worded in a way where it superficially sounds like a compile issue rather than a link issue.

2. Read https://developer.blackberry.com/cascades/documentation/dev/upgrading/index.html

 

(The changes and how to port can also be browsed to from https://developer.blackberry.com/cascades/documentation/ :  Under "Upgrade to Beta2", click "View the documentation".  This is the last section, at the bottom.

 

Stuart

Please use plain text.
Developer
soaman
Posts: 610
Registered: ‎03-03-2011
My Carrier: Mobitel

Re: JsonDataAccess

I saw in another post ;-)

I had a similar problem.
--------------------------------------------------------

Follow our developer blog on Slovenia BlackBerry Developer Group!
Please use plain text.