Hi!
I was able to insert a record in the Firestore database. when you insert it, this error is generated and the program closes. It would seem that a function is raised but I do not know how to implement it.
Error:
java.lang.Exception: Sub _onvalue was not found.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:202)
at anywheresoftware.b4a.BA$2.run(BA.java:370)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5593)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
code insert,
works fine
regards
I was able to insert a record in the Firestore database. when you insert it, this error is generated and the program closes. It would seem that a function is raised but I do not know how to implement it.
Error:
java.lang.Exception: Sub _onvalue was not found.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:202)
at anywheresoftware.b4a.BA$2.run(BA.java:370)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5593)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
code insert,
works fine
B4X:
Sub Enviar_registro_Click
fs.Initialize("Firestore",True)
Dim usuarios As CollectionReference
usuarios.Initialize("","usuarios","usuarios")
If fs.isInitialized Then
Dim loc As GeoPoint
loc.Initialize ( 50.8 , 6.44 )
Dim registro_usuario As Map
registro_usuario.Initialize
registro_usuario.Put("Alias","gregorioooo")
registro_usuario.Put("Apellido","gregorio")
registro_usuario.Put("Areas","Noqui")
registro_usuario.Put("Nombre","Gimenez")
registro_usuario.Put("geo",loc)
registro_usuario.Put("mail","gga@gmail.com")
Dim base_usuarios As Map
base_usuarios.Initialize
base_usuarios.Put("usuarios", registro_usuario)
usuarios.add(registro_usuario)
End If
End Sub
regards