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.

inside custom component

Native Development

Reply
Trusted Contributor
AllSystemGo
Posts: 140
Registered: ‎11-23-2010
My Device: Torch 9800
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: 848
Registered: ‎03-03-2011
My Device: Z10

Re: JsonDataAccess

Open .pro file and add line:

LIBS += -lbbdata

 

--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Please use plain text.
Trusted Contributor
AllSystemGo
Posts: 140
Registered: ‎11-23-2010
My Device: Torch 9800

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 (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: 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: 848
Registered: ‎03-03-2011
My Device: Z10

Re: JsonDataAccess

I saw in another post ;-)

I had a similar problem.
--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Please use plain text.