Hi, botthering you again 
I want to send a sales data detail throught HttpClient library.
I don't have problem inserting over sqlite, querying data over the httpclient. (mysql) That's just fine.
My problem is when i want to "check" the stock list products quantity
Here's what i'm doing.
I have in my database this Details
Ct ct ct ct
BEAN001
Testtesttest
Those are the code products
This is a Button
Dim Cursor1 As Cursor
SQL1.Initialize(Main.datafiles,"invdetail.db",True)
Cursor1 = SQL1.ExecQuery("SELECT * FROM invdetail")
For i = 0 To Cursor1.RowCount - 1
Cursor1.Position = i
clvproduct=Cursor1.GetString("clave")
Log("Producto "&clvproduct) 'This one returns as follows
'Producto Ct ct ct ct
'Producto BEAN001
'Producto Testtesttest
ProgressDialogShow("Verificando Inventario de Producto "&clvproduct)
FetchProductsList
Next
Cursor1.Close
In the Log when i call the FetchproductsList just appears me the last one
Response from server: [{"id":"2","clave":"Testtesttest","descripcion":"More.more","existencia":"50"}]
I don't know if this is the correct method, but would you please help me?
Thanks in advance
Sytek
I want to send a sales data detail throught HttpClient library.
I don't have problem inserting over sqlite, querying data over the httpclient. (mysql) That's just fine.
My problem is when i want to "check" the stock list products quantity
Here's what i'm doing.
I have in my database this Details
Ct ct ct ct
BEAN001
Testtesttest
Those are the code products
This is a Button
Dim Cursor1 As Cursor
SQL1.Initialize(Main.datafiles,"invdetail.db",True)
Cursor1 = SQL1.ExecQuery("SELECT * FROM invdetail")
For i = 0 To Cursor1.RowCount - 1
Cursor1.Position = i
clvproduct=Cursor1.GetString("clave")
Log("Producto "&clvproduct) 'This one returns as follows
'Producto Ct ct ct ct
'Producto BEAN001
'Producto Testtesttest
ProgressDialogShow("Verificando Inventario de Producto "&clvproduct)
FetchProductsList
Next
Cursor1.Close
In the Log when i call the FetchproductsList just appears me the last one
Response from server: [{"id":"2","clave":"Testtesttest","descripcion":"More.more","existencia":"50"}]
I don't know if this is the correct method, but would you please help me?
Thanks in advance
Sytek