InfoMaker using an Adaptive Server DOCUMENT ID: DC37789-01-1050-01 LAST REVISED: March 2006 Copyright © 1991-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 User’s Guide iii About This Book xxi PART 1 THE INFOMAKER ENVIRONMENT CHAPTER 1 Working with InfoMaker 3 About InfoMaker 4 What you can do using InfoMaker 5 Reports 5 Queries 8 Forms 9 Data pipelines 10 Applications 11 Database management 11 The InfoMaker environment 12 About the PowerBar 13 About wizards 14 Working with libraries 14 Setting the current library 14 Working with objects 16 Creating new objects 16 Opening existing objects 17 Running or previewing objects 18 Working in painters 18 Opening painters 19 Painter summary 19 Using views in painters 19 Using pop-up menus 24 Defining colors 25 Working with tools 26 Using property pages 27 Using toolbars 29 Toolbar basics 29 Drop-down toolbars 29 Contents iv InfoMaker Controlling the display of toolbars 30 Moving toolbars using the mouse 31 Customizing toolbars 31 Creating new toolbars 36 Using report wizards 37 Using the To-Do List 38 Using online Help 39 About links from Help to book content 40 About the Sybooks CD and Web site 40 Customizing keyboard shortcuts 41 Using the file editor 42 Setting file editing properties 43 Editing activities 43 Changing fonts 44 Accessing shared queries stored on a network 44 Defining libraries for user-defined form styles 45 Using the Query Governor 46 Accessing the Query Governor 47 Using the Query Governor 48 How your InfoMaker environment is managed 49 About the registry 49 About the initialization file 49 Starting InfoMaker from the command line 51 CHAPTER 2 Working with Libraries 53 About libraries 53 About InfoMaker libraries and special files 54 Creating new libraries 55 About the Library painter 56 Working with libraries 57 Displaying libraries and objects 57 Using the pop-up menu 58 Controlling columns that display in the List view 58 Selecting objects 58 Filtering the display of objects 59 Filtering the display of libraries and folders 60 Working in the current library 60 Changing the current library 60 Opening and previewing objects 61 Copying, moving, and deleting objects 61 Setting the root 62 Moving back, forward, and up one level 63 Modifying comments 63 Deleting libraries 64 Contents User’s Guide v Optimizing libraries 65 Regenerating library entries 65 Rebuilding libraries 66 Migrating libraries 67 Creating a library directory report 67 PART 2 WORKING WITH DATABASES CHAPTER 3 Managing the Database 71 Working with database components 71 Managing databases 74 Using the Database painter 76 Modifying database preferences 78 Logging your work 79 Creating and deleting an Adaptive Server Anywhere database 80 Working with tables 82 Creating a new table from scratch 82 Creating a new table from an existing table 83 Specifying column definitions 84 Specifying table and column properties 84 Altering a table 88 Cutting, copying, and pasting columns 89 Closing a table 90 Dropping a table 90 Viewing pending SQL changes 91 Printing the table definition 92 Exporting table syntax 92 About system tables 93 Creating and editing Sybase Adaptive Server temporary tables 94 Working with keys 95 Working with indexes 99 Working with database views 101 Manipulating data 106 Retrieving data 106 Modifying data 107 Sorting rows 107 Filtering rows 109 Viewing row information 110 Importing data 110 Printing data 111 Saving data 111 Contents vi InfoMaker Creating and executing SQL statements 112 Building and executing SQL statements 112 Customizing the editor 116 Controlling access to the current database 116 CHAPTER 4 Working with Data Pipelines 117 About data pipelines 117 Defining a data pipeline 118 Piping extended attributes 119 Creating a data pipeline 120 Modifying the data pipeline definition 123 Choosing a pipeline operation 125 Dependency of modifications on pipeline operation 126 When execution stops 127 Piping blob data 129 Changing the destination and source databases 131 Correcting pipeline errors 132 Saving a pipeline 133 Using an existing pipeline 134 Pipeline examples 134 PART 3 REPORTS CHAPTER 5 Defining Reports 139 About reports 139 Choosing a presentation style 140 Using the Tabular style 141 Using the Freeform style 141 Using the Grid style 142 Using the Label style 142 Using the N-Up style 144 Using the Group style 145 Using the Composite style 146 Using the Graph and Crosstab styles 147 Using the OLE 2.0 style 147 Using the RichText style 147 Using the TreeView style 148 Building a report 148 Selecting a data source 149 Using Quick Select 151 Selecting a table 152 Selecting columns 153 Contents User’s Guide vii Specifying sorting criteria 154 Specifying selection criteria 154 Using SQL Select 159 Selecting tables and views 161 Selecting columns 162 Displaying the underlying SQL statement 164 Joining tables 165 Using retrieval arguments 168 Referencing retrieval arguments 169 Specifying selection, sorting, and grouping criteria 170 Using Query 175 Using External 175 Using Stored Procedure 177 Choosing report-wide options 179 Generating and saving a report 180 About the extended attribute system tables and reports 180 Saving the report 182 Modifying an existing report 182 Defining queries 183 Previewing the query 183 Saving the query 184 Modifying a query 184 What's next 185 CHAPTER 6 Enhancing Reports 187 Working in the Report painter 188 Understanding the Report painter Design view 189 Using the Report painter toolbars 192 Using the Properties view in the Report painter 192 Selecting controls in the Report painter 193 Resizing bands in the Report painter Design view 195 Using zoom in the Report painter 195 Undoing changes in the Report painter 195 Using the Preview view of a report 196 Retrieving data 196 Modifying data 198 Importing data into a report 199 Using print preview 200 Printing data 202 Working in a grid report 203 Saving data in an external file 204 Saving the data as PDF 205 Saving the data in HTML Table format 209 Working with PSR files 209 Contents viii InfoMaker Modifying general report properties 215 Changing the report style 215 Setting colors in a report 216 Specifying properties of a grid report 217 Specifying pointers for a report 218 Defining print specifications for a report 218 Modifying text in a report 222 Naming controls in a report 222 Using borders in a report 223 Specifying variable-height bands in a report 223 Modifying the data source of a report 225 Storing data in a report using the Data view 226 What happens at runtime 228 Retrieving data 228 Prompting for retrieval criteria in a report 228 Retrieving rows as needed 229 Saving retrieved rows to disk 230 CHAPTER 7 Working with Controls in Reports 231 Adding controls to a report 231 Adding columns to a report 231 Adding text to a report 232 Adding drawing controls to a report 232 Adding a group box to a report 233 Adding pictures to a report 234 Adding computed fields to a report 235 Adding buttons to a report 239 Adding graphs to a report 241 Adding InkPicture controls to a report 241 Adding OLE controls to a report 241 Adding reports to a report 242 Reorganizing controls in a report 242 Displaying boundaries for controls in a report 242 Using the grid and the ruler in a report 242 Deleting controls in a report 243 Moving controls in a report 243 Copying controls in a report 244 Resizing controls in a report 244 Aligning controls in a report 245 Equalizing the space between controls in a report 246 Equalizing the size of controls in a report 246 Sliding controls to remove blank space in a report 247 Positioning controls in a report 248 Rotating controls in a report 249 Contents User’s Guide ix CHAPTER 8 Displaying and Validating Data 253 About displaying and validating data 253 Presenting the data 254 Validating data 255 About display formats 255 Working with display formats 256 Working with display formats in the Database painter 257 Working with display formats in the Report painter and Form painter 258 Defining display formats 259 Number display formats 261 String display formats 263 Date display formats 264 Time display formats 265 About edit styles 266 Working with edit styles 268 Working with edit styles in the Database painter 269 Working with edit styles in the Form or Report painter 270 Defining edit styles 271 The Edit edit style 271 The DropDownListBox edit style 272 The CheckBox edit style 272 The RadioButtons edit style 273 The EditMask edit style 274 The DropDownDataWindow edit style 277 The InkEdit edit style 279 Defining a code table 279 How code tables are implemented 279 How code tables are processed 281 Validating user input 281 About validation rules 282 Understanding validation rules 283 Working with validation rules 283 Defining validation rules 284 Defining a validation rule in the Database painter 284 Defining a validation rule in the Form painter 287 How to maintain extended attributes 290 CHAPTER 9 Filtering, Sorting, and Grouping Rows 291 Filtering rows 291 Sorting rows 293 Suppressing repeating values 295 Contents x InfoMaker Grouping rows 296 Using the Group presentation style 298 Defining groups in an existing report 301 CHAPTER 10 Highlighting Information in Reports and Forms 309 Highlighting information 309 Modifying properties when designing 310 Modifying properties at runtime 310 Modifying properties conditionally at runtime 313 Example 1: creating a gray bar effect 314 Example 2: rotating controls 315 Example 3: highlighting rows of data 316 Example 4: changing the size and location of controls 318 Supplying property values 319 Background.Color 321 Border 322 Brush.Color 323 Brush.Hatch 323 Color 324 Font.Escapement (for rotating controls) 325 Font.Height 326 Font.Italic 327 Font.Strikethrough 328 Font.Underline 329 Font.Weight 329 Format 330 Height 330 Pen.Color 331 Pen.Style 331 Pen.Width 333 Pointer 333 Protect 334 Timer_Interval 334 Visible 334 Width 335 X 335 X1, X2 336 Y 336 Y1, Y2 337 Specifying colors 337 [...]... programming required InfoMaker provides built-in connectivity to a broad range of desktop and server- based databases Some versions of InfoMaker also include the powerful Adaptive Server Anywhere database management system (DBMS) that enables you to create your own databases and use the built-in EAS Demo DB (a Sybase Adaptive Server Anywhere database) to create reports and other InfoMaker objects For... 779 xx InfoMaker About This Book Audience This book is for anyone who is using InfoMaker to work with data Although the book does not assume you have knowledge about any particular topic, having some familiarity with relational databases and SQL is helpful Consult books on these topics as needed InfoMaker works with many DBMSs This book describes how to use InfoMaker using an Adaptive Server Anywhere... form styles Using the Query Governor 45 46 How your InfoMaker environment is managed Starting InfoMaker from the command line User’s Guide Page 4 What you can do using InfoMaker The InfoMaker environment Before you begin Topic About InfoMaker 49 51 If you are new to InfoMaker, you should first do the tutorial in Getting Started The tutorial guides you through the process of building an InfoMaker application... within the InfoMaker environment; you can also bundle them in a fully functional databasemaintenance and reporting application that can be used outside the InfoMaker environment You create an application by using the Library painter to create an executable file You can use the application yourself; you can also distribute the executable file and some additional files to other users, who can then run... installing and starting SyBooks • 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/... Database When you work in InfoMaker, 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 InfoMaker creates all SQL statements behind the scenes as you build your reports and other objects graphically What you create in InfoMaker In InfoMaker, you can create the following objects:... view and change data • Queries to automatically retrieve data for reports or forms • Pipelines to pipe data from one database (or DBMS) to another • Applications to bundle reports and forms and distribute them to users You can see many examples of the objects you create in InfoMaker in this chapter Painters 4 In InfoMaker, you do your work in painters A painter is an object editor you use to create and... without redefining the data Here is a sample query: 8 InfoMaker CHAPTER 1 Working with InfoMaker Forms In InfoMaker, you use the Form painter to create and run interactive forms to view and change data InfoMaker provides four form styles: Freeform Master/Detail One-To-Many Grid Master/Detail Many-To-One PowerBuilder developers in your organization can create custom form styles for you to use Here are... application 3 About InfoMaker About InfoMaker InfoMaker is a reporting tool InfoMaker is a powerful and easy-to-use reporting tool that lets you query databases and create sophisticated and effective custom reports of data When optional painters are installed, it also lets you work with data in a database InfoMaker is a personal data assistant InfoMaker lets you work with data in many ways—always with... PowerBar and use the library wizard on the Library tab page If you have used InfoMaker before You can also select an existing library by clicking the Select Library button on the PowerBar and using the Browse or Recent tab pages If you select a library that you used in an earlier version of InfoMaker, InfoMaker prompts you to migrate the library to this version When InfoMaker starts When InfoMaker . Environment, Adaptive Component Architecture, Adaptive Server, Adaptive Server Anywhere, Adaptive Server Enterprise, Adaptive Server Enterprise Monitor, Adaptive Server Enterprise Replication, Adaptive. 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. Accelerator, EWA, Financial Fusion, Financial Fusion Server, Gateway Manager, GlobalFIX, iAnywhere, iAnywhere Solutions, ImpactNow, Industry Warehouse Studio, InfoMaker, Information Anywhere, Information