Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Inserting the value dynamically into columns

$
0
0

Hi

I have come across a problem.The problem is that data in coming from server and i have to to create the columns dynamically and insert the values dynamically.Till now i have been able to create the columns dynamically described in function pasted below but how could i add the values dynamically into them.To be clear i dont know what number of column and values are coming from server

exports.Insertdata = function(colname, title) {
    var db = Ti.Database.open('formgenerator');
    db.execute('INSERT INTO formgenerator(' + colname + ')VALUES(?) ', title);
    db.close();
};
Thanks

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>