Workbench User Guide
Total Page:16
File Type:pdf, Size:1020Kb
Ingres OpenROAD® 2006 Workbench User Guide OR-2006-UG-02 This documentation and related computer software program (hereinafter referred to as the "Documentation") is for the end user's informational purposes only and is subject to change or withdrawal by Ingres Corporation ("Ingres") at any time. This Documentation may not be copied, transferred, reproduced, disclosed or duplicated, in whole or in part, without the prior written consent of Ingres. This Documentation is proprietary information of Ingres and protected by the copyright laws of the United States and international treaties. Notwithstanding the foregoing, licensed users may print a reasonable number of copies of this Documentation for their own internal use, provided that all Ingres copyright notices and legends are affixed to each reproduced copy. Only authorized employees, consultants, or agents of the user who are bound by the confidentiality provisions of the license for the software are permitted to have access to such copies. This right to print copies is limited to the period during which the license for the product remains in full force and effect. The user consents to Ingres obtaining injunctive relief precluding any unauthorized use of the Documentation. Should the license terminate for any reason, it shall be the user's responsibility to return to Ingres the reproduced copies or to certify to Ingres that same have been destroyed. To the extent permitted by applicable law, INGRES PROVIDES THIS DOCUMENTATION "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. IN NO EVENT WILL INGRES BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USER OF THIS DOCUMENTATION, INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF INGRES IS EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE. The use of any product referenced in this Documentation and this Documentation is governed by the end user's applicable license agreement. The manufacturer of this Documentation is Ingres Corporation. For government users, the Documentation is delivered with "Restricted Rights" as set forth in 48 C.F.R. Section 12.212, 48 C.F.R. Sections 52.227-19(c)(1) and (2) or DFARS Section 252.227-7013 or applicable successor provisions. Copyright © 2008 Ingres Corporation. All Rights Reserved. Ingres, OpenROAD, and EDBC are registered trademarks of Ingres Corporation. All other trademarks, trade names, service marks, and logos referenced herein belong to their respective companies. Contents Chapter 1: Introduction 17 In This Guide ...................................................................................................................... 17 Installing OpenROAD ........................................................................................................... 18 Intended Audience .............................................................................................................. 18 Documentation ................................................................................................................... 18 Chapter 2: Structuring an Application 21 Basic Application Components ............................................................................................... 21 The Basics of Frames and Forms ...................................................................................... 22 Scripts, Events, and Event Blocks..................................................................................... 23 Objects ........................................................................................................................ 24 Frames .............................................................................................................................. 24 Ghost Frames................................................................................................................ 25 4GL Statements for Running Frames Concurrently.................................................................... 25 How an Application Moves Between Frames............................................................................. 26 Procedures ......................................................................................................................... 26 4GL Procedures ............................................................................................................. 27 3GL Procedures ............................................................................................................. 27 Database Procedures...................................................................................................... 27 How You Can Share Information Between Frames .................................................................... 27 Global Variables............................................................................................................. 28 Global Constants............................................................................................................ 28 User and Database Events............................................................................................... 28 Scope of Frames, Procedures, Variables, and Constants ............................................................ 29 External Code: Database, 3GL Procedures, and External Class Objects .................................. 29 4GL Procedures ............................................................................................................. 29 How You Can Change Global Constants at Runtime .................................................................. 30 Controlling the Flow of Frames......................................................................................... 31 Choosing a Concurrency Style.......................................................................................... 32 How the Application's Starting Frame Is Opened................................................................. 32 Selecting a Control Frame Style ....................................................................................... 33 How You Can Manage Database Interactions...................................................................... 35 Selecting an Operation Style............................................................................................ 35 How You Can Share Frames Among Applications ...................................................................... 37 Included Applications Feature .......................................................................................... 37 How You Can Customize Included Frames.......................................................................... 37 Contents iii How You Can Enforce Consistency Throughout Your Environment ............................................... 38 Frame Templates ........................................................................................................... 38 Style Sheets.................................................................................................................. 38 Field Templates ............................................................................................................. 39 How You Can Create Non-interactive Applications..................................................................... 39 Chapter 3: Getting Started with OpenROAD Workbench 41 OpenROAD Workbench Overview ........................................................................................... 42 Connect Tab.................................................................................................................. 47 Develop Tab.................................................................................................................. 49 Debug Tab .................................................................................................................... 51 Monitor Tab .................................................................................................................. 52 Query Tab .................................................................................................................... 54 Build Tab ...................................................................................................................... 55 Deploy Tab ................................................................................................................... 56 Manage Tab .................................................................................................................. 58 Editors ......................................................................................................................... 59 How You Can Start OpenROAD Workbench.............................................................................. 61 Start OpenROAD Workbench from the Desktop................................................................... 62 How You Can Start Ingres ............................................................................................... 63 Start OpenROAD Workbench from the Windows Command Prompt........................................ 63 Start OpenROAD Workbench with the RunImage Utility ....................................................... 64 Define a Database Connection Profile................................................................................ 67 Connect to a Database Through a Connection Profile........................................................... 70 Modify