Hi, I try to update the record "2" of a table callled "test" with the UpdateRecord and UpdatedRecord2,
I can add new records with
DBUtils.InsertMaps(SQL1, "test", ListOfMaps) and this Add a new record.
I try to update record with:
I'm using it wrong, but I dont understand what is wrong.
I can add new records with
DBUtils.InsertMaps(SQL1, "test", ListOfMaps) and this Add a new record.
I try to update record with:
B4X:
Mapa_Datos.Put("id", "2")
For i = 0 To 150 -1
If i <= 150 Then
Mapa_Datos.Put((Num_campo&Num_campo2), edt_R(i).text)
fields_list.Put((Num_campo&Num_campo2), edt_R(i).text)
Num_campo2=Num_campo2+1
Log(edt_R(i).Text)
End If
Next
ListOfMaps.Add(Mapa_Datos)
listofFields.add(fields_list)
DBUtils.UpdateRecord2(SQL1, "test", ListOfFields, ListOfMaps)
I'm using it wrong, but I dont understand what is wrong.
Last edited: