Android Question AutocompleteEditText Set Sql ID Field

ddefrain

Member
Licensed User
Longtime User
Hi All

I need to set the Sql ID number in the AutocompleteEditText.
I need to do this 'cause I want to save it (the ID) in a Sql table for reference.
How do I do This?

This is my Code
B4X:
Sub actpresentacion_TextChanged (Old As String, New As String)
   presentacionselect.Initialize("presentacionselect", Me)
   presentacionselect.PostString(Main.hostport&"/prueba.aspx","Select descrip,id from tabla_presentacion where descrip like '%"&actpresentacion.Text&"%'")
End Sub

Then in my JobDone I Have
B4X:
 Case "presentacionselect"
             Try
                Dim parsercliente As JSONParser
                parsercliente.Initialize(job.GetString)
                Dim rootcliente As List = parsercliente.NextArray
                 lpresentacion.Initialize
                For Each colrootcliente As Map In rootcliente
                        lpresentacion.Add(colrootcliente.Get("descrip"))
                        'Here........How Do I Save it/Store it to List for reference?
                Next
                actpresentacion.SetItems2(lpresentacion,Typeface.DEFAULT,Gravity.LEFT,10,Colors.White)
             Catch
                Log(LastException.Message)
             End Try


Thank's in Advance.
 
Last edited:
Top