How to show data from external Database?

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
wlederer
Posts: 175
Joined: Fri Jan 27, 2012 4:20 am

How to show data from external Database?

Post by wlederer »

Dear Colleagues,
how can I show the content on the HMI screen the content of a SQLite database which located on USB or SD-card memory?
There is a special control DatabaseViewer in the iX Developer. The embedded control option shows the internal memory area only. How to inform about (or find) an external database?
regards, Waldemar

wlederer
Posts: 175
Joined: Fri Jan 27, 2012 4:20 am

Re: How to show data from external Database?

Post by wlederer »

I found one solution.
Unfortunately, where is no DataGridView control (like one in Visual Studio) in iX Developer. It looks like, that DatabaseViewer is something similar with restricted functionality?
To monitor the external database, some actions were required.
In the internal database Database.db I created a table with similar structure like one in the external database I want to monitor.
Next, attached the external database. Then, during the same transaction, using "INSERT..SELECT" command, populated the new table with data from the external database.
Now the DatabaseViewer control can be used for monitoring the data chosen.
Why the DatabaseViewer can't see direct the external database, in not clear for me?

Post Reply