Sqldatagrid Symbol User'S Guide: Archestra
Sqldatagrid Symbol User'S Guide: Archestra
SQLDataGrid Symbol
User’s Guide
12/1/15
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 Schneider Electric Software, LLC. No copyright or patent liability is assumed
with respect to the use of the information contained herein. Although every precaution has been taken in
the preparation of this documentation, the publisher and the author assume no responsibility for errors or
omissions. Neither is any liability assumed for damages resulting from the use of the information
contained herein.
The information in this documentation is subject to change without notice and does not represent a
commitment on the part of Schneider Electric Software, LLC. The software described in this
documentation is furnished under a license agreement. This software may be used or copied only in
accordance with such license agreement.
ArchestrA, Avantis, DYNSIM, EYESIM, Foxboro, Foxboro Evo, I/A Series, InBatch, InduSoft, IntelaTrac,
InTouch, PIPEPHASE, PRO/II, PROVISION, ROMeo, Schneider Electric, SIM4ME, SimCentral, SimSci,
Skelta, SmartGlance, Spiral Software, VISUAL FLARE, WindowMaker, WindowViewer, and
Wonderware are trademarks of Schneider Electric SE, its subsidiaries, and affiliated companies. An
extensive listing of Schneider Electric Software, LLC trademarks can be found at:
http://software.schneider-electric.com/legal/trademarks/. All other brands may be trademarks of their
respective owners.
3
Contents
Welcome .................................................... 5
Documentation Conventions .......................................................... 5
Technical Support ............................................................................ 6
Index....................................................... 35
Welcome
Documentation Conventions
This documentation uses the following conventions:
Technical Support
Wonderware Technical Support offers a variety of support
options to answer any questions on Wonderware products
and their implementation.
Before you contact Technical Support, refer to the relevant
section(s) in this documentation for a possible solution to the
problem. If you need to contact technical support for help,
have the following information ready:
• The type and version of the operating system you are
using.
• Details of how to recreate the problem.
• The exact wording of the error messages you saw.
• Any relevant output listing from the Log Viewer or any
other diagnostic applications.
• Details of what you did to try to solve the problem(s) and
your results.
• If known, the Wonderware Technical Support case
number assigned to your problem, if this is an ongoing
problem.
Chapter 1
Configuring the
SQLDataGrid Symbol
Windows Authentication
If you use Windows as a value for the Authentication_dg
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.
If you select Windows as a value for the Authentication_dg
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.
CmdPagePrev_dg
ColumnAggregateEnable_dg
ColumnFiltering_dg
ColumnGroupingEnable_dg
ComboBoxPanelHide_dg
FontBold_dg
FontName_dg
FontSize_dg
SupportThemes_dg
WriteButtonHide_dg
rd1 = SQLDataGridUserCtrl1.SelectedRowData;
InTouch:Text9 = rd1.ItemArray[4].ToString();
endif;
Chapter 2
During run time, you can select the database table, view, or
query that will populate the SQLDataGrid symbol and
change the appearance of the data.
You can use the run-time application to perform the
following tasks:
• Move columns
• Group columns
• Aggregate column values
• Filter columns
• Sort columns
If you have the appropriate permissions, you can also make
the following changes to the database:
• Change the order of columns in an existing row.
• Insert a row into a table.
• Update a row in a table.
• Delete a row from a table.
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.
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.
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.
c Click OK.
5 To hide the summation signs, click Aggregate.
• 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.
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_dg
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.
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.
Tip: After you modify cells in the grid and write them back to
the database, you should also verify that the data is correctly
written. In certain cases, such as a database table with an
automatically incrementing primary key or interdependent cells,
the grid does not show the true contents of the database table
after you write back to it. Also, no error message is shown. It is
recommended that you execute a retrieve or auto refresh
command after writing to the database to make sure it is showing
the current data.
5 Select the phone number that you must modify. The area
becomes editable.
8 Click Write.
9 To verify the change, click Retrieve.
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.
Index
A alphabetical list 27
aggregate values 19 configuring 10
authentication customizing the grid 10
modes 26
D
C data, viewing 16
changes database
database 23 configuring connection 10
discarding 22 updating 23
columns discarding changes to grid values 22
aggregating values 19 Documentation 5
grouping 17 documentation conventions 5
moving 17
progressive filtering 20 E
rearraranging order 17 errors, viewing 23
components of SQLDataGrid 7
configuration F
custom properties 10 functions
database connection 10 aggregation 19
progressive column filtering 20 group-by 17
security 26
connection pooling 26 G
connection sharing 26 grid values, discarding changes 22
conventions, documentation 5 group-by function 17
custom properties grouping columns 17
I S
InTouch window, hide and show issues 16 security, configuring 26
sharing conections 26
M SQL queries, entering 16
moving columns 17 SQLDataGrid
components 7
O customizing 10
order of columns, rearranging 17 status panel 23
P T
pooling connections 26 technical support, contacting 6
progressive column filtering 20
properties, custom 10, 27 U
updates
R database 23
run-time interface views 24
aggregating values 19
entering SQL queries 16 V
group-by function 17 views, updating 24
progressive column filtering 20
viewing data 16 W
viewing errors 23 writing changes to database 23