SQLData Grid
SQLData Grid
[Link]
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved.
No part of this documentation shall be reproduced, stored in a retrieval system, or transmitted by any means,
electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of AVEVA.
No liability is assumed with respect to the use of the information contained herein.
Although precaution has been taken in the preparation of this documentation, AVEVA assumes no responsibility
for errors or omissions. The information in this documentation is subject to change without notice and does not
represent a commitment on the part of AVEVA. The software described in this documentation is furnished under
a license agreement. This software may be used or copied only in accordance with the terms of such license
agreement.
ArchestrA, Avantis, Citect, DYNSIM, eDNA, EYESIM, InBatch, InduSoft, InStep, IntelaTrac, InTouch, OASyS,
PIPEPHASE, PRiSM, PRO/II, PROVISION, ROMeo, SIM4ME, SimCentral, SimSci, Skelta, SmartGlance, Spiral
Software, WindowMaker, WindowViewer, and Wonderware are trademarks of AVEVA and/or its subsidiaries. An
extensive listing of AVEVA trademarks can be found at: [Link] All other brands may be
trademarks of their respective owners.
Publication date: Wednesday, July 13, 2022
Publication ID: 953413
Contact Information
AVEVA Group plc
High Cross
Madingley Road
Cambridge
CB3 0HB. UK
[Link]
For information on how to contact sales and customer training, see [Link]
For information on how to contact technical support, see [Link]
To access the AVEVA Knowledge and Support center, visit [Link]
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 2
Contents
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 3
Chapter 1
You can perform the following activities with the SQLDataGrid symbol:
• Insert or modify data in selected database tables and views.
• Delete rows from a database table (select the row and press the Delete key).
• Select data from existing tables and views.
• Run a custom SQL query.
This section provides the following information:
• The minimum configuration required by the SQLDataGrid symbol to retrieve data from a SQL database.
• The set of custom properties that must be configured to authenticate users and connect to the database.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 4
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 1 – Configuring the SQLDataGrid Symbol
• A list of the custom properties that define the parameters associated with a specific database and query to
be retrieved.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 5
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 1 – Configuring the SQLDataGrid Symbol
For detailed information on working with symbols, see the ArchestrA and InTouch Integration Guide.
Windows Authentication
If you use Windows as a value for the Authentication custom property and do not designate custom properties
for a domain, user, or password, the SQLDataGrid symbol uses the credentials of the user who is currently logged
on to the node running InTouch.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 6
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 1 – Configuring the SQLDataGrid Symbol
If you select Windows as a value for the Authentication custom property and designate custom properties for a
domain, user, and password, the SQLDataGrid symbol uses the specified Windows domain name, user name, and
password to connect to the SQL Server database.
SQL Server
This authentication mode uses the specified SQL Server user name and password to connect to the SQL Server
database.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 7
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 1 – Configuring the SQLDataGrid Symbol
ConfiguredUser
Database Connectivity Designate database connectivity functions
AutoRefresh
AutoRefreshDuration
CmdCancel
CmdRefresh
CmdRetrieve
CmdTestConnection
CmdWrite
ComboBoxListString
ConfiguredDatabase
ConfiguredReadOnly
ConfiguredServer
RowCount
RowLimit
SelectedRowNumber
SQLQuery
SQLQueryCurrent
SQLQueryPassThrough
SQLQueryPending
Diagnostic Perform diagnostic functions
CmdLogDiagnostics
CmdResetDiagnostics
ErrorPanelDisable
StatusDesc
StatusError
StatusIsError
Appearance Modify the appearance of the run-time SQLDataGrid that contains
data from the database
ButtonPanelHide
CmdPageFirst
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 8
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 1 – Configuring the SQLDataGrid Symbol
CmdPageLast
CmdPageNext
CmdPagePrev
ColumnAggregateEnable
ColumnFiltering
ColumnGroupingEnable
ComboBoxPanelHide
FontBold
FontName
FontSize
SupportThemes
SuppressAuthenticationWarning
WriteButtonHide
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 9
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 1 – Configuring the SQLDataGrid Symbol
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 10
Chapter 2
Viewing Data
You can use the run-time version of the SQLDataGrid symbol to view data in the following formats:
• Data from a specific table
• Data from a specific view
• Data that is retrieved by a SQL query
You can resize the column width of any table, view, or query result.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 11
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 2 – Working with the SQLDataGrid in Run Time
Moving Columns
You can rearrange the order of the columns to meet your viewing needs.
To move columns
1. Click the heading of the column that you want to move.
2. Holding your mouse key down, drag the column heading to another position within the table.
Grouping Columns
The group-by function lets you sort data at more specific levels. This example shows a view that groups customer
names and their business addresses.
Note: The ColumnGroupingEnable custom property must be True before you can use this function.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 12
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 2 – Working with the SQLDataGrid in Run Time
4. To view the data groups, press Enter to expand any of the StateProvince items.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 13
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 2 – Working with the SQLDataGrid in Run Time
5. To see a more specific sorting of the data, drag another column heading to the upper sorting area.
6. If you want to sort the data at an even finer level, you can repeat steps 3 and 4 and drag another column
heading to the sort area.
7. If you want to remove one of the column headings from the sorting area, drag it down to the data area.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 14
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 2 – Working with the SQLDataGrid in Run Time
3. Select Average and click OK. The value appears just below the Grand Summaries row. You can re-size the
column width to view the entire number This following figure shows the average value for OrderQty.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 15
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 2 – Working with the SQLDataGrid in Run Time
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 16
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 2 – Working with the SQLDataGrid in Run Time
6. Move your cursor over the field below the LastName column heading. A list arrow appears.
7. You can filter the values by any of the following actions:
• Click the list arrow and type the first letter of the value If you type additional letters, your sort is more
precise.
• Click the list arrow and select an item from the list.
• If you select the (Custom) item from the list, you can further refine your search in the Custom dialog box.
This example shows a search for two different area codes.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 17
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 2 – Working with the SQLDataGrid in Run Time
8. To perform a different search, clear your search criteria by clicking the cancel icon at the left of the filtering
row.
Discarding Changes
If you need to discard the changes made to grid values, click Retrieve. This action reloads the table values from
the database and discards any changes. You can also initiate the action by using a script that sets the
CmdRetrieve property to True.
Viewing Errors
You can manually display or close the Status panel in the lower part of the grid display area. The status panel can
also automatically appear when an error occurs. However, after the panel appears, it remains on view.
If a command object is successful, the message "Success" appears in the Status panel. If the panel is closed,
"Success" messages do not appear for successful command objects.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 18
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 2 – Working with the SQLDataGrid in Run Time
To close the panel, click the double-arrow icon at the right of the panel. To open the panel on demand, right-click
and select Show Status.
Note: The error panel display does not change the overall area occupied by the grid symbol.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 19
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 2 – Working with the SQLDataGrid in Run Time
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 20
AVEVA™ SQLDataGrid Symbol User Guide
Chapter 2 – Working with the SQLDataGrid in Run Time
8. Click Write.
9. To verify the change, click Retrieve.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 21
Appendix A
The following table lists all available Custom Properties. Data types are shown in the Custom Properties panel
and are not included in this table.
Property Name Description
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 22
AVEVA™ SQLDataGrid Symbol User Guide
Appendix A – Custom Properties for the SQLDataGrid Symbol
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 23
AVEVA™ SQLDataGrid Symbol User Guide
Appendix A – Custom Properties for the SQLDataGrid Symbol
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 24
AVEVA™ SQLDataGrid Symbol User Guide
Appendix A – Custom Properties for the SQLDataGrid Symbol
ComboBoxListReadOnly If False, you can make changes to the edit box above
the combo list box.
Writable at Run Time: Yes
Default: False
ComboBoxListString Enables a list of table or view names, separated by
semicolons to be viewable in the Runtime combo box.
Writable at Run Time: Yes
Default: Blank
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 25
AVEVA™ SQLDataGrid Symbol User Guide
Appendix A – Custom Properties for the SQLDataGrid Symbol
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 26
AVEVA™ SQLDataGrid Symbol User Guide
Appendix A – Custom Properties for the SQLDataGrid Symbol
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 27
AVEVA™ SQLDataGrid Symbol User Guide
Appendix A – Custom Properties for the SQLDataGrid Symbol
Default: 0
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 28
AVEVA™ SQLDataGrid Symbol User Guide
Appendix A – Custom Properties for the SQLDataGrid Symbol
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 29