Hi All
This is my first post so please be gentle and I am still pretty new to B4J but have already learnt a great deal from this fantastic community.
It looks like it is not possible but thought I would put it out there anyway to see if anyone has thought of or created an alternative solution.
I am using jRDC2 to connect to my cloud MS SQL database from my B4A app, and I want to tell the server to use a specific database using the rdclink when the app makes a connection, so I had a thought that if in the rdclink string I include say /A3001 instead of rdc (that being the possible account number and relative DB name) and add a handler in RDCHandler to capture this and then read a list from a data file with all the account numbers mapped to the relevant DB and name the config file the same as the account name this would then open the relevant config.properties file.
However rdcConnector initialises and reads the config file before the handlers get initiated, so that theory went out the window.
I looked at the following but this is for opening 2 databases (or more) from the rdcconnector.initialise
https://www.b4x.com/android/forum/threads/jrdc-how-to-connect-to-multiple-database.59930/#content
Is this even possible with jRDC or am I barking up the wrong tree??
Thanks
Mark
This is my first post so please be gentle and I am still pretty new to B4J but have already learnt a great deal from this fantastic community.
It looks like it is not possible but thought I would put it out there anyway to see if anyone has thought of or created an alternative solution.
I am using jRDC2 to connect to my cloud MS SQL database from my B4A app, and I want to tell the server to use a specific database using the rdclink when the app makes a connection, so I had a thought that if in the rdclink string I include say /A3001 instead of rdc (that being the possible account number and relative DB name) and add a handler in RDCHandler to capture this and then read a list from a data file with all the account numbers mapped to the relevant DB and name the config file the same as the account name this would then open the relevant config.properties file.
However rdcConnector initialises and reads the config file before the handlers get initiated, so that theory went out the window.
I looked at the following but this is for opening 2 databases (or more) from the rdcconnector.initialise
https://www.b4x.com/android/forum/threads/jrdc-how-to-connect-to-multiple-database.59930/#content
Is this even possible with jRDC or am I barking up the wrong tree??
Thanks
Mark