Database connection ID
Posted: Thu Jun 13, 2013 2:23 pm
Hi Guys,
Getting quite determined to start my database app. I've got a Main stack and within that main stack I have a function which connects to the database and returns a connectionId into a global field called connID. This all occurs on the preopen stack command and is present in the stack script.
I've then created a substack called customer (and I'll create others called Supplier, Timesheets etc), and am evaluating if on preopen (connID>0) populate my datagrid. This is producing an error, so my question is, if I have made a connection in the main script, can I use that connection id in substacks or do I need to create a new connection for each substack.
Or do I have to take it further and create a connection everytime I query the database.
Hope my question makes sense. Really want to get going with the designing the core of my system.
Thanks
Getting quite determined to start my database app. I've got a Main stack and within that main stack I have a function which connects to the database and returns a connectionId into a global field called connID. This all occurs on the preopen stack command and is present in the stack script.
I've then created a substack called customer (and I'll create others called Supplier, Timesheets etc), and am evaluating if on preopen (connID>0) populate my datagrid. This is producing an error, so my question is, if I have made a connection in the main script, can I use that connection id in substacks or do I need to create a new connection for each substack.
Or do I have to take it further and create a connection everytime I query the database.
Hope my question makes sense. Really want to get going with the designing the core of my system.
Thanks