In his tutorial "B4X] jRDC2 - B4J implementation of RDC", EREL uses an "object" as parameter for executing an SQL command.
Unfoetunately, I don't arrive to pass a simple string parameter. I get the correct id if I execute
with this line in the "config.properties" file :
For transferring the parameter as a variable, I tried
with
but it returns a bad rowid.
The Log in B4J Server shows it received
My understanding is that it cannot work if the question mark in the command received by B4J Server is not replaced by "Sting"
So something is wrong in my parameters list in B4A but what ?
Thanks for the help
Unfoetunately, I don't arrive to pass a simple string parameter. I get the correct id if I execute
B4X:
Dim cmd As DBCommand = CreateCommand("select_artistid", Null)
B4X:
sql.select_artistid=SELECT rowid FROM artiste WHERE ArtisteName = "Sting";
For transferring the parameter as a variable, I tried
B4X:
Dim params() As Object = Array("Sting")
Dim cmd As DBCommand = CreateCommand("select_artistid", params)
B4X:
sql.select_artistid=SELECT rowid FROM artiste WHERE ArtisteName = ?;
The Log in B4J Server shows it received
B4X:
Execute: SELECT rowid FROM artiste WHERE ArtisteName = ?;
My understanding is that it cannot work if the question mark in the command received by B4J Server is not replaced by "Sting"
So something is wrong in my parameters list in B4A but what ?
Thanks for the help