1. I need to update multiple records using dbutils.UpdateRecord. Should I use multiple lines for the same, like this ?
2. How to update multiple tables with multiple fields using dbutils.UpdateRecord ? Of course need to check for any dberrors while updating the values ? ie should rollback all the updates if any errors occurs.
B4X:
lm_where as map
lm_where. initialize
lm_where.put("key1", keyvalue1)
dbutils.updaterecord(sql, 'table1', 'field1', 'value1', lm_where)
dbutils.updaterecord(sql, 'table1', 'field2', 'value2', lm_where)
2. How to update multiple tables with multiple fields using dbutils.UpdateRecord ? Of course need to check for any dberrors while updating the values ? ie should rollback all the updates if any errors occurs.