I am trying to connect to a database (data warehouse) via JDBC. From what I read in the documentation and controls, it seems like on can set the JDBC connection settings to connect to a specific database. The thing is that the documentation and examples connect to a local database on the local machine.
Has anyone used the DBQUERY to connect to a JDBC db on a different server? IF so would you mind sharing how you did it?
We haven’t got any enhancement request regarding the support of the DBQUERY controls up to now.
Another aspect here is: The current DBQUERY controls are sufficient for some specific use cases. But a more general approach for different kind of data sources and data formating has advantages.
So, the answer to your question: Support for the DBQUERY controls in NATPAGEs is currently not planned.
…some thoughts to add the DBQUERY features to your NJX application:
Option A:
Have a SUBCISPAGE2 control in a NATPAGE. In this SUBCISPAGE2 control you would load your PAGE layout which contains the DBQUERY controls.
Option B:
Open your PAGE layout which contains the DBQUERY controls as a popup. You can open a popup from within an adapter listener. Or you could open the popup in the usual way from within Natural. In this case the popup would be a NATPAGE which contains a SUBCISPAGE2 control as in Option A.
If you would like to exchange data between your Natural application and the “DBQUERY-PAGE” you can again use an adapter listener. You can also use XCIDATADEF controls to add some not rendered data as some kind of “data exchange area” to your NATPAGEs.