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
Contributor
Posts: 28
Registered: ‎02-07-2013
My Device: blackberry 10

qml database inesert

Hi,

 Is there any way to insert data into sqlite database using qml ? Or is there any way to write data into json file using qml ? Please help me!

Developer
Posts: 6,145
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: qml database inesert

Only indirectly by exposing the methods from c++ to qml.

 

Here's an example of one way of doing it...

 

http://blackberry.github.io/Cascades-Samples/databasecreation.html


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Contributor
Posts: 12
Registered: ‎04-08-2013
My Device: Z10 Limited Edition STL100-1

Re: qml database inesert

Or check this site: https://developer.blackberry.com/native/sampleapps/ there is SQL and JSON examples.