the procedure not raise immediately, first finish the sub and then raise the "Sub ADMDamir_QueryResult2"
there are some way to raise immediately?
i need to set the flag, with the query...
this is my code...
B4X:
Sub btnAceptar_Click
dbADM.QueryASync2("Select id from apertura")
If BooApertura = False Then
ToastMessageShow("Horario Aperturado",False)
Else
ToastMessageShow("Ok para Apertura",False)
End If
End Sub
Sub btnSalir_Click
Activity.Finish
End Sub
Sub ADMDamir_QueryResult2(data As List, meta As Map)
If meta <> Null Then
BooApertura = True
Msgbox("Listo para Apertura","Apertura")
Else
BooApertura = False
Msgbox("Ya existe","Query")
End If
End Sub
It is a network problem. Cannot be solved within a library.
But you should get an update on the status event and react on yourself... Try to Connect again
It it a name you can give to this "task". You´ll get this "task" as part of the result meta data to identify the result. Can be helpful when using different queries.
It it a name you can give to this "task". You´ll get this "task" as part of the result meta data to identify the result. Can be helpful when using different queries.
The library has changed after the creation of the example but the example did not get an update.
I´ll update the Example soon to supress "problems like you posted"
I am new at B4A and I would really appreciate a fully working example (maybe the source code of "MySQL_Northwind.apk") will be very helpful. I find a little confusing some of the terms.
I am newbie with B4A as well as with MSMySQL. In my first attempt to connect I have succeeded but only in the debug mode. It works fine but, when I go into the release it is not connecting to the database. I get a message:
An error has occurred in sub:sync_mysql_queryresult (java line:436)
java.lang.NullPointerException
I can see in the Debug log "MySQL not connected!"
What is it that I am missing, because it connects in debug but not in release?