advanced integration - grid control in this presentation… –the enhanced grid control....

14
Advanced Integration - Grid Control In this presentation… The enhanced Grid control. Application integration. New properties and events. Connecting to data sources.

Upload: verity-burns

Post on 26-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

Advanced Integration - Grid Control

• In this presentation…– The enhanced Grid control.– Application integration.– New properties and events.– Connecting to data sources.

Page 2: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

Advanced Integration - Grid Control

• Enhanced Grid control– Supports advanced refacing and new development.

• Extends existing 5250 support.• Provides link to alternate data sources, e.g. databases loaded

using script or macros.

– Removes constraints of 24x80 ‘green screen’. Grids can hold more information than typical ‘green screens’.

• Improves user productivity.• Improves aesthetic appeal.

Page 3: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

Advanced Integration - Grid Control

• Enhanced Grid control– Automatically displays iSeries subfile data (5250).– Displays data in a series of rows and columns.

• New functionality– New Row, Column, Cell objects.– Use the Collections property to add columns.– Resize grid columns (Designer & User).– Sort columns (User).– Re-order columns (in Designer only).– Horizontal scrolling.

• Saves screen space.– Grid Supports use of other controls.

• Use Designer to change field recognition, e.g. DateCombo etc.

– Makes integration easier.

Page 4: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

Advanced Integration - Grid Control

• The Grid control and Enterprise Integration– Combine data from multiple layers:

• Presentation.• Application.• Data.

– Use the enhanced Grid to retrieve data from:• Databases.• iSeries apps.• Other.

Page 5: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

Advanced Integration - Grid Control

• Grid properties– Properties:

• CaptionText• CaptionBackColor• CaptionForeColor• ImageList• ShowCaption• ShowColumnHeaders• FoldCount• ScrollBars• Columns

– Events:• OnBeginEdit• OnEndEdit• OnLoadRecord• OnScroll• OnSort

Page 6: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

Advanced Integration - Grid Control

• Collections:– Modify individual column properties.– Customize look and feel

• Cells– Modify cell collections for each row using macro or script

properties.

Page 7: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

Advanced Integration - Grid Control

• The Enhanced Grid control and data integration– Databases supported– Inserting a grid control

• Database types– DDM– ADO

Page 8: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

Advanced Integration - Grid Control

• DDM databases– iSeries– zSeries– SSL encryption

• ADO databases– Microsoft SQL Server– Oracle– iSeries, zSeries– Microsoft Access– Any database that has ADO driver.

Page 9: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

Advanced Integration - Grid Control

• Inserting a Grid control– Insert Grid from Designer menu.– Set properties to bind to a database.– Bind fields to Grid control.

Page 10: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

Advanced Integration - Grid Control

• Data connection properties– Server

• Specify the server type (ServerDDM, ServerADO)

– Source• If Server property is DBServerADO then the Source property is

a Command object variable, an SQL statement, a stored procedure, or a table name

• If the Server property is set to DBServerDDM, the Source property specifies a file or member name.

Page 11: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

Advanced Integration - Grid Control

• Data connection properties– ConnectionString

• Prompter to help build connection string• For ADO connections, the contents of the connection string are

determined by the OLE DB provider.

– Sample DDM connection string• Network Address=192.168.1.1;Network Port=447;Use

Encryption for Data=False;User ID=brendan;Host CCSID=37;Mode=Read|ShareDenyNone;Isolation Level=ReadCommitted;Process Binary as Character=False

– Sample ADO connection string• Provider=MSDASQL.1;Persist Security Info=False;Data

Source=MS Access Database;Initial Catalog=newlookdemo.mdb

Page 12: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

Advanced Integration - Grid Control

• Database description tool– Available from Tools menu– View Connection String– View properties– View database structure

Page 13: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

centric 8 Training

Workshop 6

Page 14: Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting

This page is intentionally left blank.