This is from teh DBUtils Sample project
FillGradesTable
Its using map M and a list thereOf
I instead have a custom type CLocation and a list of these types.
I'm going to have to do this manually aren't I ???!?!
FillGradesTable
Its using map M and a list thereOf
I instead have a custom type CLocation and a list of these types.
B4X:
Type CLocation(dbId As Int, locNm As String, sku As String, _
shlf As Int,ori As Int,sho As Boolean, ot As Boolean, wlkSeq As Int)
B4X:
For test = 1 To 20
For student = 0 To Table.Size - 1
Dim m As Map
m.Initialize
Cols = Table.Get(student)
m.Put("Id", Cols(0))
m.Put("Test", "Test #" & test)
m.Put("Grade", Rnd(0, 101)) 'The upper value is exclusive
ListOfMaps.Add(m)
Next
Next
DBUtils.InsertMaps(SQL, "Grades", ListOfMaps)