FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
05-29-2024 12:18 PM - last edited on 06-04-2024 07:53 AM by CodeShepherd
Hello webiq-eg,
I have a customer who wants to display a sql table in WebIQ, and by selecting a row he can write a data directly to the external MS SQL database.
To display the table I would also need a Query to request the data.
Would this be possible with Scripts and UI-Actions?
Thanks
Solved! Go to Solution.
05-29-2024 03:11 PM
@David08 This would better have been a new topic instead of replying to a resolved one.
First of all you need to know that it is impossible to access SQL databases directly from a web browser - web technology does not allow that in general - so this has always be done in the backend which in this case is WebIQ Server.
You currently cannot extend WebIQ Server yourself, you can however use the API to acess data stored in the local SQLite database. You cannot access MS SQL data from WebIQ Server, because it's not supported (not built in).
What you could do - as from what I see there's no connection between the data and the HMI itself - is to create (or use) another (existing) web application that provides this functionality that you can simply embed in the HMI using the iFrame widget. You can use any programming language you like that provides a web server for that and implement that functionality.
06-04-2024 07:53 AM
Moved to own topic from "SQL Server".