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
Developer
Posts: 49
Registered: ‎05-02-2013
My Device: Z 10
My Carrier: airtel

Access SQL from QML

I want to retrive database content from QML.

It's just retrive username from a table based on the userid.

pls help me..

i want to know how to connect DB

and how to run the SELECT query

plsssss

Developer
Posts: 692
Registered: ‎08-09-2010
My Device: Not Specified

Re: Access SQL from QML

Hi,

 

 Please follow below link

 

 http://supportforums.blackberry.com/t5/Cascades-Development/When-i-fires-select-query-but-not-get-da...

 

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

feel free to press the like button on the right side to thank the user that helped you.

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Access SQL from QML

you can execute sql by using a DataSource for a ListView.
For other tasks you would have to use a c++/Qt class and expose its methods using Q_INVOKABLE.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter