jeudi 16 avril 2015

how to pass sqLite data into .CSV file in Sheets

We developing phoneGap application.We need SqLite table data pass to CSV file sheet1 and sheet2.We have Table names person_informaltion and offices_infromation. We have IT.CSV file.We need person_informaltion table pass to sheet1 and offices_infromation pass to sheet2 in IT.CSV file


We did table data pass to csv file using File API PhoneGap.we code like this



function onDeviceReady() {

window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
}
function gotFS(fileSystem) {

fileSystem.root.getFile("IT.csv", {create: true, exclusive: false}, gotFileEntry, fail);
}

function gotFileEntry(fileEntry) {
alert("seeeeee3");
fileEntry.createWriter(gotFileWriter, fail);
}
function gotFileWriter(writer) {

alert("aaaaaaa");
writer.onwrite = function (evt) {

};
writer.write(getForHeader+'\r\n'+getOrderTableElements);

}


We got this


Aucun commentaire:

Enregistrer un commentaire