Hello.
I've been researching, using AI, the best way to create and use a class for managing an internal SQLite database, but in a way that's cross-platform and accessible from the entire app (including a service).
The solution we've found is to create a code module within a B4XPages project that instantiates the class so it's accessible to the entire app.
Because if it were only for B4A, we could omit that code module and instantiate it from the Starter module, for example. I think.
Is this the best or only way to do it?
Can this be corrected, improved, or extended in any way?
Can any more common methods be added or modified?
How can we then verify that it works correctly with the B4J and B4i code generated by the B4XPages project?
I've used a UNIQUE field as a reference.
It is only a reference example.
Thanks.
I've been researching, using AI, the best way to create and use a class for managing an internal SQLite database, but in a way that's cross-platform and accessible from the entire app (including a service).
The solution we've found is to create a code module within a B4XPages project that instantiates the class so it's accessible to the entire app.
Because if it were only for B4A, we could omit that code module and instantiate it from the Starter module, for example. I think.
Is this the best or only way to do it?
Can this be corrected, improved, or extended in any way?
Can any more common methods be added or modified?
How can we then verify that it works correctly with the B4J and B4i code generated by the B4XPages project?
I've used a UNIQUE field as a reference.
It is only a reference example.
Thanks.
Attachments
Last edited: