SQL Query Table | Custom Web Control | WinCC Unified & V8

3 downloads
Free

Made with the HMIx AI Generator

This resource was created with AI on ai.hmix.tech. Describe what you need and generate your own HMI controls in minutes — free.

Custom Web Control

About SQL Query Table

SQL Query Table is a Custom Web Control for WinCC Unified and WinCC V8 that displays SQL query results in a clean, operator-ready data table. Columns are aligned automatically, numeric values are right-justified, and tag values are highlighted for quick reading. The control does not connect to a database itself. It raises events that your runtime script uses to run the query and return the result.

Key Features

  • Column-aware display: Numeric columns are right-justified and text columns are left-aligned automatically.
  • Live search: Filters rows as the operator types, controlled by searchVisible and searchPlaceholder.
  • Paging: pageSize limits records per page, and the pager appears only when filtered records exceed it.
  • Row selection: Selecting a row fires RowSelected with the row data as JSON.
  • Add, Edit and Delete actions: Each button fires its own event to the engineering tool, and deletion requires confirmation in a dialog.
  • Automatic refresh: QueryRequested fires every refreshInterval seconds and can also be triggered on demand through refreshNow.

Customization

Set title, query and connectionString in the engineering tool or bind them to HMI tags. Button visibility and captions, dialog texts, empty and error messages, the row count suffix, pager labels and backgroundColor are all defined through the property list, so the control adapts to each project's language and layout without any coding.

Use Cases

Ideal for production order lists, alarm and event logs, batch records, recipe tables and maintenance schedules shown on operator panels and control room screens.

Compatibility

Works with WinCC Unified (TIA Portal) and WinCC V8. When linking a tag to a property that the Custom Web Control must write to, uncheck the Read only option in TIA Portal. Otherwise the control can only read the HMI tag.

AI-Generated: This custom web control was generated using AI. Test and validate it thoroughly before deploying in production environments.

⚠️ AI-Generated: This custom web control was automatically generated using AI technology. It may contain errors or unexpected behavior. Users are responsible for testing and validating before using in production environments.

Share this item:
Version:v2
Last Update:Nov 4, 2026
Published:Oct 27, 2026
Layout:SIEMENS - SIMATIC

Product Reviews (0)

Question and Answers (0)

You may also like

Free