Sybase 2 User manual

Category
Software
Type
User manual
DataWindow Designer Users Guide
DataWindow .NET
2.0
DOCUMENT ID: DC00043-01-0200-01
LAST REVISED: March 2006
Copyright © 2004-2006 by Sybase, Inc. All rights reserved.
This publication pertains to Sybase software and to any subsequent release until otherwise indicated in new editions or technical notes.
Information in this document is subject to change without notice. The software described herein is furnished under a license agreement,
and it may be used or copied only in accordance with the terms of that agreement.
To order additional documents, U.S. and Canadian customers should call Customer Fulfillment at (800) 685-8225, fax (617) 229-9845.
Customers in other countries with a U.S. license agreement may contact Customer Fulfillment via the above fax number. All other
international customers should contact their Sybase subsidiary or local distributor. Upgrades are provided only at regularly scheduled
software release dates. No part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic,
mechanical, manual, optical, or otherwise, without the prior written permission of Sybase, Inc.
Sybase, the Sybase logo, ADA Workbench, Adaptable Windowing Environment, Adaptive Component Architecture, Adaptive Server,
Adaptive Server Anywhere, Adaptive Server Enterprise, Adaptive Server Enterprise Monitor, Adaptive Server Enterprise Replication,
Adaptive Server Everywhere, Adaptive Warehouse, Afaria, Answers Anywhere, Anywhere Studio, Application Manager, AppModeler,
APT Workbench, APT-Build, APT-Edit, APT-Execute, APT-Translator, APT-Library, AvantGo Mobile Delivery, AvantGo Mobile
Inspection, AvantGo Mobile Marketing Channel, AvantGo Mobile Pharma, AvantGo Mobile Sales, AvantGo Pylon, AvantGo Pylon
Application Server, AvantGo Pylon Conduit, AvantGo Pylon PIM Server, AvantGo Pylon Pro, Backup Server, BizTracker,
ClearConnect, Client-Library, Client Services, Convoy/DM, Copernicus, Data Pipeline, Data Workbench, DataArchitect, Database
Analyzer, DataExpress, DataServer, DataWindow, DataWindow .NET, DB-Library, dbQueue, Developers Workbench, DirectConnect,
DirectConnect Anywhere, Distribution Director, e-ADK, E-Anywhere, e-Biz Impact, e-Biz Integrator, E-Whatever, EC Gateway,
ECMAP, ECRTP, eFulfillment Accelerator, Embedded SQL, EMS, Enterprise Application Studio, Enterprise Client/Server, Enterprise
Connect, Enterprise Data Studio, Enterprise Manager, Enterprise SQL Server Manager, Enterprise Work Architecture, Enterprise Work
Designer, Enterprise Work Modeler, eProcurement Accelerator, EWA, Financial Fusion, Financial Fusion Server, Gateway Manager,
GlobalFIX, iAnywhere, iAnywhere Solutions, ImpactNow, Industry Warehouse Studio, InfoMaker, Information Anywhere, Information
Everywhere, InformationConnect, InternetBuilder, iScript, Jaguar CTS, jConnect for JDBC, M2M Anywhere, Mach Desktop, Mail
Anywhere Studio, Mainframe Connect, Maintenance Express, Manage Anywhere Studio, M-Business Anywhere, M-Business Channel,
M-Business Network, M-Business Suite, MDI Access Server, MDI Database Gateway, media.splash, MetaWorks, mFolio, Mirror
Activator, MySupport, Net-Gateway, Net-Library, New Era of Networks, ObjectConnect, ObjectCycle, OmniConnect, OmniSQL
Access Module, OmniSQL Toolkit, Open Biz, Open Client, Open ClientConnect, Open Client/Server, Open Client/Server Interfaces,
Open Gateway, Open Server, Open ServerConnect, Open Solutions, Optima++, PB-Gen, PC APT Execute, PC DB-Net, PC Net Library,
Pharma Anywhere, PocketBuilder, Pocket PowerBuilder, Power++, power.stop, PowerAMC, PowerBuilder, PowerBuilder Foundation
Class Library, PowerDesigner, PowerDimensions, PowerDynamo, PowerScript, PowerSite, PowerSocket, Powersoft, PowerStage,
PowerStudio, PowerTips, Powersoft Portfolio, Powersoft Professional, PowerWare Desktop, PowerWare Enterprise, ProcessAnalyst,
QAnywhere, Rapport, RemoteWare, RepConnector, Replication Agent, Replication Driver, Replication Server, Replication Server
Manager, Replication Toolkit, Report-Execute, Report Workbench, Resource Manager, RFID Anywhere, RW-DisplayLib, RW-Library,
Sales Anywhere, SDF, Search Anywhere, Secure SQL Server, Secure SQL Toolset, Security Guardian, SKILS, smart.partners,
smart.parts, smart.script, SOA Anywhere, SQL Advantage, SQL Anywhere, SQL Anywhere Studio, SQL Code Checker, SQL Debug,
SQL Edit, SQL Edit/TPU, SQL Everywhere, SQL Modeler, SQL Remote, SQL Server, SQL Server Manager, SQL SMART, SQL
Toolset, SQL Server/CFT, SQL Server/DBM, SQL Server SNMP SubAgent, SQL Station, SQLJ, STEP, SupportNow, S.W.I.F.T.
Message Format Libraries, Sybase Central, Sybase Client/Server Interfaces, Sybase Financial Server, Sybase Gateways, Sybase IQ,
Sybase MPP, Sybase SQL Desktop, Sybase SQL Lifecycle, Sybase SQL Workgroup, Sybase User Workbench, SybaseWare, Syber
Financial, SyberAssist, SybFlex, SyBooks, System 10, System 11, System XI (logo), SystemTools, Tabular Data Stream, TradeForce,
Transact-SQL, Translation Toolkit, UltraLite, UltraLite.NET, UNIBOM, Unilib, Uninull, Unisep, Unistring, URK Runtime Kit for
UniCode, VisualWriter, VQL, WarehouseArchitect, Warehouse Control Center, Warehouse Studio, Warehouse WORKS, Watcom,
Watcom SQL, Watcom SQL Server, Web Deployment Kit, Web.PB, Web.SQL, WebSights, WebViewer, WorkGroup SQL Server, XA-
Library, XA-Server, XcelleNet, and XP Server are trademarks of Sybase, Inc. 10/05
Unicode and the Unicode Logo are registered trademarks of Unicode, Inc.
All other company and product names used herein may be trademarks or registered trademarks of their respective companies.
Use, duplication, or disclosure by the government is subject to the restrictions set forth in subparagraph (c)(1)(ii) of DFARS 52.227-7013
for the DOD and as set forth in FAR 52.227-19(a)-(d) for civilian agencies.
Sybase, Inc., One Sybase Drive, Dublin, CA 94568.
Contents
DataWindow Designer User’s Guide iii
About This Book.......................................................................................................................... xv
PART 1 THE DATAWINDOW DESIGNER ENVIRONMENT
CHAPTER 1 Working with DataWindow Designer............................................. 3
About DataWindow Designer........................................................... 4
The DataWindow Designer environment.......................................... 4
About the PowerBar .................................................................. 5
Working with projects....................................................................... 6
Working with DataWindow objects................................................... 7
Creating new DataWindow objects ........................................... 8
Opening existing DataWindow objects...................................... 8
Running or previewing DataWindow objects............................. 9
Working in painters ........................................................................ 10
Using views in painters............................................................ 10
Using pop-up menus ............................................................... 15
Defining colors......................................................................... 16
Working with tools.......................................................................... 17
Using the file editor.................................................................. 17
Using the To-Do List................................................................ 18
Setting properties........................................................................... 20
Using toolbars ................................................................................ 21
Toolbar basics......................................................................... 21
Drop-down toolbars................................................................. 21
Controlling the display of toolbars ........................................... 22
Moving toolbars using the mouse............................................ 23
Customizing toolbars............................................................... 23
Creating new toolbars ............................................................. 28
Using online Help........................................................................... 29
Customizing keyboard shortcuts.................................................... 30
Changing fonts............................................................................... 31
Contents
iv
DataWindow .NET
How your DataWindow Designer environment is managed........... 32
About the registry.................................................................... 32
About the initialization file........................................................ 33
CHAPTER 2 Working with Libraries.................................................................. 35
About libraries................................................................................ 35
About the Library painter................................................................ 36
Working with libraries..................................................................... 37
Displaying libraries and objects............................................... 37
Using the pop-up menu........................................................... 38
Controlling columns that display in the List view..................... 38
Selecting objects..................................................................... 39
Filtering the display of objects................................................. 39
Filtering the display of libraries and folders............................. 40
Opening and previewing objects............................................. 40
Copying, moving, and deleting objects.................................... 40
Setting the root........................................................................ 42
Moving back, forward, and up one level.................................. 42
Modifying comments ............................................................... 43
Deleting libraries...................................................................... 44
Optimizing libraries......................................................................... 44
Regenerating library entries........................................................... 45
Migrating libraries.................................................................... 45
Exporting and importing entries ..................................................... 46
Creating a deployment library (PBD file)........................................ 48
Including additional resources in the PBD file......................... 48
What happens at runtime........................................................ 49
Creating a library directory report................................................... 49
CHAPTER 3 Managing the Database................................................................. 51
Working with database components.............................................. 51
Managing databases...................................................................... 54
Using the Database painter............................................................ 55
Modifying database preferences............................................. 58
Logging your work................................................................... 59
Creating and deleting an Adaptive Server Anywhere database..... 60
Working with tables........................................................................ 62
Creating a new table from scratch........................................... 62
Creating a new table from an existing table............................ 63
Specifying column definitions.................................................. 64
Specifying table and column properties .................................. 64
Altering a table ........................................................................ 68
Cutting, copying, and pasting columns.................................... 70
Contents
DataWindow Designer User’s Guide v
Closing a table......................................................................... 70
Dropping a table...................................................................... 70
Viewing pending SQL changes............................................... 71
Printing the table definition...................................................... 72
Exporting table syntax............................................................. 72
About system tables................................................................ 73
Creating and editing Sybase Adaptive Server temporary
tables................................................................................ 74
Working with keys.......................................................................... 75
Working with indexes..................................................................... 79
Working with database views......................................................... 81
Manipulating data........................................................................... 86
Retrieving data........................................................................ 86
Modifying data......................................................................... 87
Sorting rows ............................................................................ 88
Filtering rows........................................................................... 89
Viewing row information .......................................................... 90
Importing data ......................................................................... 90
Printing data............................................................................ 91
Saving data ............................................................................. 91
Creating and executing SQL statements ....................................... 92
Building and executing SQL statements ................................. 92
Customizing the editor............................................................. 95
Controlling access to the current database.................................... 96
PART 2 DATAWINDOWS
CHAPTER 4 Defining DataWindow Objects..................................................... 99
About DataWindow objects............................................................ 99
DataWindow object examples............................................... 100
Choosing a presentation style...................................................... 101
Using the Tabular style.......................................................... 102
Using the Freeform style ....................................................... 102
Using the Grid style............................................................... 103
Using the Label style............................................................. 103
Using the N-Up style ............................................................. 105
Using the Group style............................................................ 106
Using the Composite style..................................................... 107
Using the Graph and Crosstab styles.................................... 108
Using the TreeView style....................................................... 108
Building a DataWindow object ..................................................... 109
Selecting a data source................................................................ 110
Contents
vi
DataWindow .NET
Using Quick Select....................................................................... 112
Selecting a table.................................................................... 113
Selecting columns................................................................. 114
Specifying sorting criteria...................................................... 115
Specifying selection criteria................................................... 115
Using SQL Select......................................................................... 121
Selecting tables and views.................................................... 122
Selecting columns................................................................. 124
Displaying the underlying SQL statement............................. 125
Joining tables ........................................................................ 126
Using retrieval arguments ..................................................... 129
Specifying selection, sorting, and grouping criteria............... 130
Using Query ................................................................................. 136
Using External.............................................................................. 136
Using Stored Procedure............................................................... 137
Using ADO DataSet..................................................................... 139
Choosing DataWindow object-wide options................................. 141
Generating and saving a DataWindow object.............................. 142
About the extended attribute system tables and
DataWindow objects....................................................... 143
Saving the DataWindow object ............................................. 144
Modifying an existing DataWindow object............................. 144
Defining queries........................................................................... 145
Previewing the query............................................................. 146
Saving the query ................................................................... 146
Modifying a query.................................................................. 147
What's next................................................................................... 147
CHAPTER 5 Enhancing DataWindow Objects................................................ 149
Working in the DataWindow painter............................................. 150
Understanding the DataWindow painter Design view........... 152
Using the DataWindow painter toolbars................................ 154
Using the Properties view in the DataWindow painter .......... 155
Selecting controls in the DataWindow painter....................... 156
Resizing bands in the DataWindow painter Design view...... 157
Using zoom in the DataWindow painter................................ 157
Undoing changes in the DataWindow painter....................... 158
Using the Preview view of a DataWindow object......................... 158
Retrieving data...................................................................... 159
Modifying data....................................................................... 161
Viewing row information........................................................ 162
Importing data into a DataWindow object.............................. 163
Using print preview................................................................ 163
Printing data.......................................................................... 165
Contents
DataWindow Designer User’s Guide vii
Working in a grid DataWindow object ................................... 166
Saving data in an external file...................................................... 168
Saving the data as PDF ........................................................ 168
Saving the data in HTML Table format.................................. 169
Working with PSR files.......................................................... 170
Modifying general DataWindow object properties........................ 171
Changing the DataWindow object style................................. 171
Setting colors in a DataWindow object.................................. 172
Specifying properties of a grid DataWindow object............... 173
Specifying pointers for a DataWindow object........................ 174
Defining print specifications for a DataWindow object .......... 174
Modifying text in a DataWindow object ................................. 178
Defining the tab order in a DataWindow object..................... 179
Naming controls in a DataWindow object.............................. 180
Using borders in a DataWindow object................................. 181
Specifying variable-height bands in a DataWindow object.... 182
Modifying the data source of a DataWindow object .............. 183
Storing data in a DataWindow object using the Data view........... 185
What happens at runtime...................................................... 187
Retrieving data............................................................................. 187
Prompting for retrieval criteria in a DataWindow object ........ 187
Retrieving rows as needed.................................................... 188
Saving retrieved rows to disk ................................................ 189
CHAPTER 6 Controlling Updates in DataWindow Objects........................... 191
About controlling updates............................................................. 191
What you can do ................................................................... 192
Specifying the table to update...................................................... 193
Specifying the unique key columns.............................................. 193
Specifying an identity column....................................................... 194
Specifying updatable columns ..................................................... 194
Specifying the WHERE clause for update/delete......................... 195
Specifying update when key is modified...................................... 197
Using stored procedures to update the database........................ 198
CHAPTER 7 Working with Controls in DataWindow Objects....................... 201
Adding controls to a DataWindow object ..................................... 201
Adding columns to a DataWindow object.............................. 201
Adding text to a DataWindow object ..................................... 202
Adding drawing controls to a DataWindow object................. 203
Adding a group box to a DataWindow object........................ 203
Adding pictures to a DataWindow object............................... 204
Adding computed fields to a DataWindow object.................. 205
Contents
viii
DataWindow .NET
Adding buttons to a DataWindow object ............................... 210
Adding graphs to a DataWindow object................................ 213
Adding InkPicture controls to a DataWindow object.............. 213
Adding reports to a DataWindow object................................ 214
Reorganizing controls in a DataWindow object............................ 214
Displaying boundaries for controls in a DataWindow object . 215
Using the grid and the ruler in a DataWindow object............ 215
Deleting controls in a DataWindow object............................. 216
Moving controls in a DataWindow object .............................. 216
Copying controls in a DataWindow object............................. 216
Resizing controls in a DataWindow object............................ 217
Aligning controls in a DataWindow object............................. 218
Equalizing the space between controls in a DataWindow
object.............................................................................. 218
Equalizing the size of controls in a DataWindow object........ 219
Sliding controls to remove blank space in a DataWindow
object.............................................................................. 219
Positioning controls in a DataWindow object............................... 221
Rotating controls in a DataWindow object ................................... 222
CHAPTER 8 Displaying and Validating Data .................................................. 225
About displaying and validating data............................................ 225
Presenting the data............................................................... 226
Validating data....................................................................... 227
About display formats................................................................... 227
Working with display formats ....................................................... 228
Working with display formats in the Database painter .......... 228
Working with display formats in the DataWindow painter ..... 230
Defining display formats............................................................... 231
Number display formats ........................................................ 233
String display formats............................................................ 235
Date display formats.............................................................. 235
Time display formats............................................................. 237
About edit styles........................................................................... 238
Working with edit styles................................................................ 240
Working with edit styles in the Database painter................... 240
Working with edit styles in the DataWindow painter.............. 242
Defining edit styles....................................................................... 242
The Edit edit style.................................................................. 242
The DropDownListBox edit style........................................... 243
The CheckBox edit style........................................................ 244
The RadioButtons edit style .................................................. 245
The EditMask edit style......................................................... 246
Contents
DataWindow Designer User’s Guide ix
The DropDownDataWindow edit style................................... 249
The InkEdit edit style............................................................. 251
Defining a code table ................................................................... 251
How code tables are implemented........................................ 252
How code tables are processed............................................ 253
Validating user input.............................................................. 254
About validation rules................................................................... 255
Understanding validation rules.............................................. 255
Working with validation rules........................................................ 256
Defining validation rules............................................................... 257
Defining a validation rule in the Database painter................. 257
Defining a validation rule in the DataWindow painter............ 260
How to maintain extended attributes............................................ 263
CHAPTER 9 Filtering, Sorting, and Grouping Rows..................................... 265
Filtering rows................................................................................ 265
Sorting rows ................................................................................. 267
Suppressing repeating values............................................... 269
Grouping rows.............................................................................. 270
Using the Group presentation style....................................... 272
Defining groups in an existing DataWindow object............... 276
CHAPTER 10 Highlighting Information in DataWindow Objects ................... 285
Highlighting information................................................................ 285
Modifying properties when designing.................................... 285
Modifying properties at runtime............................................. 286
Modifying properties conditionally at runtime............................... 289
Example 1: creating a gray bar effect.................................... 290
Example 2: rotating controls.................................................. 291
Example 3: highlighting rows of data..................................... 292
Example 4: changing the size and location of controls ......... 294
Supplying property values............................................................ 295
Background.Color.................................................................. 297
Border.................................................................................... 298
Brush.Color ........................................................................... 299
Brush.Hatch........................................................................... 300
Color...................................................................................... 301
Font.Escapement (for rotating controls)................................ 302
Font.Height............................................................................ 303
Font.Italic............................................................................... 304
Font.Strikethrough................................................................. 305
Font.Underline....................................................................... 306
Font.Weight........................................................................... 306
Contents
x
DataWindow .NET
Format................................................................................... 307
Height.................................................................................... 307
Pen.Color .............................................................................. 308
Pen.Style............................................................................... 308
Pen.Width.............................................................................. 310
Pointer................................................................................... 310
Protect................................................................................... 311
Timer_Interval ....................................................................... 311
Visible.................................................................................... 311
Width..................................................................................... 312
X............................................................................................ 312
X1, X2.................................................................................... 313
Y............................................................................................ 313
Y1, Y2.................................................................................... 314
Specifying colors.......................................................................... 314
CHAPTER 11 Using Nested Reports ................................................................. 317
About nested reports.................................................................... 317
Creating a report using the Composite presentation style........... 319
Placing a nested report in another report..................................... 321
Placing a related nested report in another report.................. 321
Placing an unrelated nested report in another report............ 324
Working with nested reports......................................................... 325
Adjusting nested report width and height.............................. 325
Changing a nested report from one report to another........... 326
Modifying the definition of a nested report ............................ 326
Adding another nested report to a composite report............. 327
Supplying retrieval arguments to relate a nested report to
its base report................................................................. 327
Specifying criteria to relate a nested report to its base
report............................................................................. 329
Using options for nested reports ........................................... 330
CHAPTER 12 Working with Crosstabs.............................................................. 333
About crosstabs ........................................................................... 333
Two types of crosstabs.......................................................... 336
Creating crosstabs....................................................................... 337
Associating data with a crosstab.................................................. 338
Specifying the information..................................................... 338
Viewing the crosstab............................................................. 341
Specifying more than one row or column.............................. 343
Previewing crosstabs ................................................................... 344
Contents
DataWindow Designer User’s Guide xi
Enhancing crosstabs.................................................................... 344
Specifying basic properties ................................................... 345
Modifying the data associated with the crosstab................... 346
Changing the names used for the columns and rows........... 346
Defining summary statistics................................................... 347
Cross-tabulating ranges of values......................................... 350
Creating static crosstabs....................................................... 353
Using property conditional expressions................................. 354
CHAPTER 13 Working with TreeViews............................................................. 357
TreeView presentation style......................................................... 357
Creating a new TreeView DataWindow ....................................... 359
TreeView creation process.................................................... 359
Creating a TreeView DataWindow........................................ 359
Adding and deleting TreeView levels........................................... 363
Selecting a tree node and navigating the tree.............................. 364
Sorting rows in a TreeView DataWindow..................................... 365
TreeView DataWindow Design view............................................ 366
Setting properties for the TreeView DataWindow........................ 367
Setting general TreeView properties..................................... 368
Setting TreeView level properties.......................................... 369
Setting detail band properties................................................ 371
TreeView DataWindow samples.................................................. 371
Data Explorer sample............................................................ 372
Data Linker sample ............................................................... 375
CHAPTER 14 Exporting and Importing XML Data........................................... 379
About XML ................................................................................... 379
Valid and well-formed XML documents................................. 380
XML syntax............................................................................ 381
XML parsing.......................................................................... 382
XML support in the DataWindow painter...................................... 383
The Export/Import Template view for XML................................... 384
Creating templates................................................................ 385
Saving templates................................................................... 387
Header and Detail sections................................................... 387
Editing XML templates................................................................. 390
XML declaration .................................................................... 391
Document type declaration.................................................... 392
Root element......................................................................... 393
Controls................................................................................. 394
DataWindow expressions...................................................... 394
Attributes............................................................................... 395
Contents
xii
DataWindow .NET
Composite and nested reports.............................................. 395
CDATA sections.................................................................... 397
Comments............................................................................. 397
Processing instructions ......................................................... 398
Exporting to XML.......................................................................... 398
Setting properties on the Data Export page.......................... 399
Selecting templates at runtime.............................................. 408
Importing XML.............................................................................. 408
Importing with a template...................................................... 409
Default data import................................................................ 413
Tracing import ....................................................................... 416
CHAPTER 15 Working with Graphs................................................................... 419
About graphs................................................................................ 419
Parts of a graph..................................................................... 420
Types of graphs..................................................................... 421
Using graphs in DataWindow objects .......................................... 425
Placing a graph in a DataWindow object............................... 425
Using the graph's Properties view......................................... 426
Changing a graph's position and size.................................... 427
Associating data with a graph ............................................... 428
Using overlays....................................................................... 437
Using the Graph presentation style.............................................. 439
Defining a graph's properties ....................................................... 440
Using the General property page in the graph's Properties
view ............................................................................... 440
Sorting data for series and categories................................... 442
Specifying text properties for titles, labels, axes, and
legends........................................................................... 442
Specifying overlap and spacing............................................. 445
Specifying axis properties ..................................................... 446
Specifying a pointer............................................................... 448
PART 3 APPENDIXES
APPENDIX A Identifiers ..................................................................................... 451
Rules............................................................................................ 451
Reserved words ........................................................................... 452
Contents
DataWindow Designer User’s Guide xiii
APPENDIX B The Extended Attribute System Tables .................................... 453
About the extended attribute system tables................................. 453
The extended attribute system tables.......................................... 454
Edit style types for the PBCatEdt table ........................................ 457
CheckBox edit style (code 85)............................................... 457
RadioButton edit style (code 86)........................................... 458
DropDownListBox edit style (code 87).................................. 459
DropDownDataWindow edit style (code 88).......................... 460
Edit edit style (code 89)......................................................... 461
Edit Mask edit style (code 90)............................................... 463
APPENDIX C Starting DataWindow Designer from the Command Line....... 465
Starting DataWindow Designer from the command line .............. 465
Index ........................................................................................................................................... 467
Contents
xiv
DataWindow .NET
DataWindow Designer User’s Guide xv
About This Book
Audience
This book is written for programmers who need to design DataWindow®
objects. DataWindow objects are used to retrieve, present, and manipulate
data from a relational database or other source. You can use the
DataWindow objects that you build in DataWindow Designer to create
applications for the Microsoft .NET Framework using Sybase
DataWindow .NET™.
How to use this book
This book guides you through the process of using DataWindow Designer
to create DataWindow objects.
Related documents
For information on using DataWindow objects with the Microsoft .NET
Framework, see the DataWindow .NET Programmer's Guide.
For a complete list of books and online documentation, see the preface in
the DataWindow .NET Programmer's Guide.
Other sources of
information
Use the Sybase Getting Started CD, the SyBooks CD, and the Sybase
Product Manuals Web site to learn more about your product:
The Getting Started CD contains release bulletins and installation
guides in PDF format, and may also contain other documents or
updated information not included on the SyBooks CD. It is included
with your software. To read or print documents on the Getting Started
CD, you need Adobe Acrobat Reader, which you can download at no
charge from the Adobe Web site using a link provided on the CD.
The SyBooks CD contains product manuals and is included with your
software. The Eclipse-based SyBooks browser allows you to access
the manuals in an easy-to-use, HTML-based format.
Some documentation may be provided in PDF format, which you can
access through the PDF directory on the SyBooks CD. To read or
print the PDF files, you need Adobe Acrobat Reader.
Refer to the SyBooks Installation Guide on the Getting Started CD, or
the README.txt file on the SyBooks CD for instructions on installing
and starting SyBooks.
xvi DataWindow .NET
The Sybase Product Manuals Web site is an online version of the SyBooks
CD that you can access using a standard Web browser. In addition to
product manuals, you will find links to EBFs/Maintenance, Technical
Documents, Case Management, Solved Cases, newsgroups, and the
Sybase Developer Network.
To access the Sybase Product Manuals Web site, go to
Product Manuals at
http://www.sybase.com/support/manuals/
.
Sybase EBFs and
software
maintenance
Finding the latest information on EBFs and software maintenance
1 Point your Web browser to the Sybase Support Page at
http://www.sybase.com/support
.
2 Select EBFs/Maintenance. If prompted, enter your MySybase user name
and password.
3 Select a product.
4 Specify a time frame and click Go. A list of EBF/Maintenance releases is
displayed.
Padlock icons indicate that you do not have download authorization for
certain EBF/Maintenance releases because you are not registered as a
Technical Support Contact. If you have not registered, but have valid
information provided by your Sybase representative or through your
support contract, click Edit Roles to add the “Technical Support Contact”
role to your MySybase profile.
5 Click the Info icon to display the EBF/Maintenance report, or click the
product description to download the software.
If you need help
Each Sybase installation that has purchased a support contract has one or more
designated people who are authorized to contact Sybase Technical Support. If
you cannot resolve a problem using the manuals or online help, please have the
designated person contact Sybase Technical Support or the Sybase subsidiary
in your area.
PART 1 The DataWindow Designer
Environment
This part introduces you to DataWindow Designer and
describes how to work in and manage its environment. It
also describes how to work with databases, tables, views,
and extended attributes.
DataWindow Designer User’s Guide 3
CHAPTER 1
Working with DataWindow
Designer
About this chapter
This chapter describes the basics of working with DataWindow Designer
and its painters.
Contents
Topic Page
About DataWindow Designer 4
The DataWindow Designer environment 4
Working with projects 6
Working with DataWindow objects 7
Working in painters 10
Working with tools 17
Setting properties 20
Using toolbars 21
Using online Help 29
Customizing keyboard shortcuts 30
Changing fonts 31
How your DataWindow Designer environment is managed 32
About DataWindow Designer
4 DataWindow .NET
About DataWindow Designer
DataWindow Designer is a tool that creates DataWindow objects for use in
applications. A DataWindow object is an object that you use to retrieve and
manipulate data from a relational database or other data source. The following
DataWindow object retrieves and updates employee data.
DataWindow Designer provides built-in connectivity to a broad range of
desktop and server-based databases. It includes the EAS Demo DB (a Sybase
Adaptive Server® Anywhere database) to create reports and other
DataWindow Designer objects.
When you work in DataWindow Designer, you work in a graphical
environment—and working with data in this environment means you do not
need to understand SQL, the standard programming language for talking to
databases. DataWindow Designer creates all SQL statements behind the scenes
as you build your DataWindow objects and other objects graphically.
Painters
In DataWindow Designer, you do most of your work in the DataWindow
painter, where you “paint” your DataWindow objects. DataWindow Designer
also has painters where you work with databases, libraries, and SQL
statements.
The DataWindow Designer environment
When you start
DataWindow Designer
the first time
In DataWindow Designer, you always work within the context of a
DataWindow project. Information about the project is stored in a text file with
the extension .dwp. The DataWindow objects you create are stored in binary
files called libraries. Library files have the extension .pbl.
To create a new project and a library to hold your DataWindow objects, click
the New button on the PowerBar and select Project from the Project tab page.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462
  • Page 463 463
  • Page 464 464
  • Page 465 465
  • Page 466 466
  • Page 467 467
  • Page 468 468
  • Page 469 469
  • Page 470 470
  • Page 471 471
  • Page 472 472
  • Page 473 473
  • Page 474 474
  • Page 475 475
  • Page 476 476
  • Page 477 477
  • Page 478 478
  • Page 479 479
  • Page 480 480
  • Page 481 481
  • Page 482 482
  • Page 483 483
  • Page 484 484
  • Page 485 485
  • Page 486 486
  • Page 487 487
  • Page 488 488
  • Page 489 489
  • Page 490 490
  • Page 491 491
  • Page 492 492
  • Page 493 493
  • Page 494 494
  • Page 495 495
  • Page 496 496
  • Page 497 497
  • Page 498 498
  • Page 499 499
  • Page 500 500

Sybase 2 User manual

Category
Software
Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI