adress a spcecific (this) element in a list via JS
im making a SQLite call to increment a value. it increments ok.
next, i want to update the corresponding label in a itereated grid
but i dont know how to adrress the ' this.Apperyio("label").text ' element.
i could get around this if i just do another sql lookup and force a lookup, i want to save cycles.
var db = window.openDatabase(version, "", version, 1024*1000);
db.transaction(
Code: Select all
function(tx) {
tx.executeSql('UPDATE "Tables" SET usadas=usadas+1 WHERE nombre="Abel Cortes" ' , [], function(tx, results) { });
} );
this two lines fail, because i cant identify which grid element was clicked
var usadas=parseInt(Apperyio("usadas_invisible").text);
this.Apperyio("usadas_invisible").text(usadas+1);in this image, i click on the checkmark to increase the red value, this works on the local sqlite DB, but that label i cant update, unless i rerun de sql search.