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
No. All Async methods are asyncronous.there are some way to raise immediately?
dbADM.QueryASync2("Select id from apertura where maquina = " & spMaquina.SelectedItem & " and Estado = 'Abierto';")
auxcount = meta.Get("RecordCount")
sometimes, if i have this
B4X:dbADM.QueryASync2("Select id from apertura where maquina = " & spMaquina.SelectedItem & " and Estado = 'Abierto';")
sometimes, if i have this
i take the control whit thisB4X:dbADM.QueryASync2("Select id from apertura where maquina = " & spMaquina.SelectedItem & " and Estado = 'Abierto';")
then, if i have 0 in RecordCount the result is empty, but sometimes i have null like answer, why? any idea?B4X:auxcount = meta.Get("RecordCount")
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.How come it is not in the example code?
AddPermission(android.permission.INTERNET)
Maybe a good idea for future updatesI wrongly assumed it was added when the library was added.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?