140 likes | 161 Views
Advanced Integration - Grid Control. In this presentation… The enhanced Grid control. Application integration. New properties and events. Connecting to data sources. Advanced Integration - Grid Control. Enhanced Grid control Supports advanced refacing and new development.
E N D
Advanced Integration - Grid Control • In this presentation… • The enhanced Grid control. • Application integration. • New properties and events. • Connecting to data sources.
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.
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.
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.
Advanced Integration - Grid Control • Grid properties • Properties: • CaptionText • CaptionBackColor • CaptionForeColor • ImageList • ShowCaption • ShowColumnHeaders • FoldCount • ScrollBars • Columns • Events: • OnBeginEdit • OnEndEdit • OnLoadRecord • OnScroll • OnSort
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.
Advanced Integration - Grid Control • The Enhanced Grid control and data integration • Databases supported • Inserting a grid control • Database types • DDM • ADO
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.
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.
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.
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
Advanced Integration - Grid Control • Database description tool • Available from Tools menu • View Connection String • View properties • View database structure
Workshop 6 centric 8 Training