Those are not depending on the library. They are parts of the SQL language. DonManfred's library allows you to execute them using (for example) ExecuteASyncjust the users need to how to use your library such as save,update,delete,search and show in listview
All possibiities are shown in Post #2 and #4 of this Thread. Including using the result-eventsjust the users need to how to use your library
1. Posting your codewhat i missed?
Sub Globals
Private btnOrden As Button
Private btnEntrega As Button
Private btnParametros As Button
Dim DBEstampa As MySQL
Dim CurOrden As Cursor
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Principal")
Ruta = File.DirRootExternal
If FirstTime Then
GPS1.Initialize("GPS")
End If
If File.Exists(Ruta,"estampa.s3db") = False Then
Msgbox("Se copia","Copiando...")
File.Copy(File.DirAssets,"estampa.s3db",Ruta,"estampa.s3db")
End If
DBOrden.Initialize(Ruta,"estampa.s3db",False)
DBEstampa.Initialize("MySQL","xxx.xxx.xxx.xxx","estampa","estampa01","molino",True,True)
End Sub
Sub Activity_Resume
If GPS1.GPSEnabled = False Then
ToastMessageShow("Please enable the GPS device.", True)
StartActivity(GPS1.LocationSettingsIntent) 'Will open the relevant settings screen.
Else
GPS1.Start(0, 0)
End If
End Sub
Sub Activity_Pause (UserClosed As Boolean)
GPS1.Stop
End Sub
Sub btnOrden_Click
Dim AuxMsg As Int
CurOrden = DBOrden.ExecQuery("Select * from Orden where Estado = 'Entregado'")
If CurOrden.RowCount <= 0 Then
StartActivity(Orden)
Else
AuxMsg = Msgbox2("No tiene Orden de Carga, desea Cargar una Nueva","Orden de Carga","SI",Null,"NO",Null)
If AuxMsg = DialogResponse.NEGATIVE Then
StartActivity(Orden)
Else
Msgbox("Nueva Orden en Progreso","Orden de Carga")
End If
End If
End Sub
Sub btnEntrega_Click
End Sub
Sub btnParametros_Click
StartActivity(Param)
End Sub
You file is not a mysql-database. there is no file for a mysql-database.That's all...
in the log, i have nothing
install the package --> open --> crash
DBEstampa.Initialize("MySQL","xxx.xxx.xxx.xxx","estampa","estampa01","molino",True,True)
what is
estampa.s3db?????????????????????????????????????????????
So it won't work with DonManfred's library. SQLite is different from MySQL.is sqlite, local database
You file is not a mysql-database. there is no file for a mysql-database.
The lib is to connect to a MYSQL-Database hostet on a server and which is accessible trough the internet.
This is the only line which seens to belong to my lib
B4X:DBEstampa.Initialize("MySQL","xxx.xxx.xxx.xxx","estampa","estampa01","molino",True,True)
if have two DB, one local and one to the MySQL serverSo it won't work with DonManfred's library. SQLite is different from MySQL.
You dont need my lib to open a sqlite datababase. Just use SQL object for this.
Hello, I have the following error when I try to have a date data type but not configured. Other sql managers if the data show
"SqlException: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp"
"(NullPointerException) java.lang.NullPointerException: Attempt to invoke virtual method 'int anywheresoftware.b4a.objects.collections.List.getSize()' on a null object reference"
NULLIF(DTime,"00:00:00 00:00:00") AS DTime
tnks for reply... the instruction nullif work fine, but prefer an instruction more global in the connection url, how doid?
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?