Hi.
I have a class and I use it for reading a JSON.
The problem is that the wait for not waiting at all.
My link is correct parameter's are correct but keep not waiting.
When code reach Wait For my code exit.
Any idea?
I have a class and I use it for reading a JSON.
The problem is that the wait for not waiting at all.
My link is correct parameter's are correct but keep not waiting.
When code reach Wait For my code exit.
Any idea?
B4X:
Dim Link As String = "Http://localhost:8081"
Dim j1 As HttpJob
j1.Initialize("", Me)
Dim Body As Map = CreateMap( "service" : "getTableFields", "ID" : clientID1, "app" : app, "obj" : obj1, "table" : t1)
Parameters = Body.As(JSON).ToString
' Log("GetTableFields Parameters: " & Parameters)
j1.PatchString(Link, Parameters)
Wait For (j1) JobDone(j1 As HttpJob) <---- Not waiting.
If j1.Success Then
Last edited: