Pravee7094
Active Member
Hi all,
While using B4x table for adding data, having one doubt in that.
Sample Code Here:
Fill up the four text fields and when I click the button, the above four fields are added to B4Xtable perfectly.
And Fill up another data in the text field and click the button to add in B4XTable, the latest data replace the before row.
But I want to add the next row.
Any suggestion or help?
Regards
Praveen
While using B4x table for adding data, having one doubt in that.
Sample Code Here:
B4X:
Private Sub btn_addcustomerdetails_Click
Dim ll_list As List
ll_list.Initialize
Dim lm_map As Map
lm_map.Initialize
lm_map.Put("itemname", ilbl_edititemname.Text)
lm_map.Put("uom", is_spnruom.SelectedItem)
lm_map.Put("quantity", ip_editquantity.Text)
lm_map.Put("rate", ilbl_editrate.Text)
Log("Map Value : " & lm_map)
Dim row(4) As Object
row(0) = lm_map.Get("itemname")
row(1) = lm_map.Get("uom")
row(2) = lm_map.Get("quantity")
row(3) = lm_map.Get("rate")
ll_list.Add(row)
B4XTable.SetData(ll_list)
End Sub
Fill up the four text fields and when I click the button, the above four fields are added to B4Xtable perfectly.
And Fill up another data in the text field and click the button to add in B4XTable, the latest data replace the before row.
But I want to add the next row.
Any suggestion or help?
Regards
Praveen