Notifications
Clear all

Read variables from an external DB to QuickHMI.

4 Posts
3 Users
0 Reactions
1,968 Views
frecciag50
(@frecciag50)
Posts: 2
Member
Topic starter
 

In the sample project 100301 write_variable_from_database_table is shown the possibility to read a value from the cell of a databasetable control, through a mouse click event on the cell. Is there the possibility to get the cell value of database table pointing directly through row and col index, without using an event trigger.

Is there some other way to read variables and fields from a Table in an external DB MsSql or Mysql or ... ?

Thanks in advance


This topic was modified 2 years ago 2 times by frecciag50
 
Posted : 10/03/2024 5:38 pm CET
Matthias
(@m-folte-9469)
Posts: 34
Member Admin
 

Hello frecciag,

usually to read values from a database into a variable one would use the database datasource. The downside of that is however the limitation that it can only read from one specific QHMI_VARIABLES table. https://www.indi-an.com/help_quickhmi/actual/online/en/creating_database_ds.html

The extension of this function to read from any table is already on our roadmap.

To get back to your specific question in regards to the example project:
It is possible to get the cell by specifying the column and row index. We updated out demo project to reflect that. 


 
Posted : 15/03/2024 2:27 pm CET
(@manoj-kalekar)
Posts: 8
Member
 

The link https://www.indi-an.com/help_quickhmi/actual/online/en/creating_database_ds.html

is not working.


 
Posted : 06/02/2025 5:51 am CET
Matthias
(@m-folte-9469)
Posts: 34
Member Admin
 

For some reason there was a closing bracket ")" in the link. This links works:

https://www.indi-an.com/help_quickhmi/actual/online/en/creating_database_ds.html

Although we suggest using the new documentation as the old "classic" one will no longer be maintained: https://docs.quickhmi.com/en/dokumentation/communication/create-database-data-sources/


 
Posted : 07/02/2025 7:42 am CET