Getting Started with Genexus 9.0
Total Page:16
File Type:pdf, Size:1020Kb
Getting Started with GeneXus 9.0 Latest Update: 2009 Getting Started With GeneXus 9.0 Copyright Artech Consultores S.R.L. 1988-2009. All rights reserved. This document may not be reproduced in any form without the express permission of Artech Consultores S.R.L. The information contained herein is intended for personal use only. Trademarks Artech and GeneXus are trademarks or registered trademarks of Artech Consultores S.R.L. All other trademarks mentioned herein are property of their respective owners. Page 1 Getting Started With GeneXus 9.0 Introduction ......................................................................................................................................... 3 System Requirements ............................................................................................................................ 3 SQL Server 2005 Express Edition .......................................................................................................... 4 GeneXus Generators Requirements ....................................................................................................... 6 GeneXus Trial Version ............................................................................................................................ 8 Trial Version Restrictions ..................................................................................................................... 8 License Restrictions ............................................................................................................................ 8 Technical Support .............................................................................................................................. 8 Installation and Setup .......................................................................................................................... 10 GeneXus Trial Version Authorization ....................................................................................................... 12 Getting Started: Step by Step Tutorial .................................................................................................... 14 Knowledge-based Application Design ................................................................................................... 14 Step 1: Creating a Knowledge Base ................................................................................................. 15 Step 2: Creating a Transaction Object .............................................................................................. 16 Step 3: Describing the Transaction Structure ..................................................................................... 17 Step 4: Defining Calculated Fields Formulas ................................................................................... 20 Step 5: Viewing the Data Model Inferred by GeneXus ......................................................................... 22 Step 6: Viewing the Transaction Object Forms ................................................................................... 25 Step 7: Creating Appealing Web Forms Themes .............................................................................. 28 Step 8: Adding Business Rules Rules ............................................................................................ 30 Step 9: Creating the Transaction Object Customer ............................................................................. 31 Step 10: Reviewing the Data Model Changes ..................................................................................... 35 Automatic Database Generation ......................................................................................................... 38 Step 11: Prototyping your Application .............................................................................................. 38 Step 11-A: Prototyping your Application in .NET with SQL Server 2005 Express Edition ............................. 38 Step 11-B: Prototyping your Application in JAVA with SQL Server 2005 Express Edition ............................ 43 Step 12: Viewing the Database Creation Report ................................................................................. 49 Step 13: Creating the Prototype Model Database................................................................................ 52 Automatic Code Generation ............................................................................................................... 54 Step 14: Specifying and Generating your Code Build Command ......................................................... 54 Step 15: Viewing the Specification Report ......................................................................................... 55 Fully Functional Prototyping ............................................................................................................... 58 Step 16: Running your Application ................................................................................................... 59 Step 17: Testing your Application .................................................................................................... 61 Incremental Development and Application Maintenance .......................................................................... 65 Step 18: Adding New Objects to your Project: Product Transaction Object .............................................. 65 Step 19: Reviewing Changes in your Data Model ................................................................................ 67 Step 20: Impact Analysis and Database Reorganization ....................................................................... 68 Step 21: Regenerating your Application Programs .............................................................................. 73 Step 22: Compiling and Running your Application ............................................................................... 75 Designing Non-Interactive Processes (Reports and Procedures) ................................................................ 77 Step 23: Creating and Calling a Report ............................................................................................. 77 Step 24: Specifying, Generating, and Running your Application ............................................................ 87 Designing Interactive Queries and Dialogues (Work and Web Panels) ........................................................ 89 Step 25: Creating a Web Panel: Work with Customers ........................................................................ 89 Step 26: Executing the Web Panel: Work with Customers .................................................................... 99 Multi-platform Development............................................................................................................. 101 Summary......................................................................................................................................... 101 Contact and Resources ....................................................................................................................... 103 GeneXus Community ...................................................................................................................... 103 Support ........................................................................................................................................ 103 How to Buy ................................................................................................................................... 103 Appendix I: GeneXus Models ............................................................................................................... 104 Page 2 Getting Started With GeneXus 9.0 Introduction The goal of this document is to help you discover the power of the knowledge-based development methodology proposed by GeneXus and experience the key features of GeneXus. That is: • Automatic data model design • Automatic code generation • Automatic database and code maintenance • Multi-platform development and deployment System Requirements The GeneXus Trial Version includes the following products: • GeneXus Development Environment It is an Integrated Development Environment (IDE) for designing, developing and maintaining business applications, regardless of the production platform. • GeneXus Generators GeneXus generates native code for all the leading platforms. For a complete list of GeneXus Generators, visit http://www.genexus.com/technologies . The GeneXus Generators available in the GeneXus Trial Version are the .NET Generator and the JAVA Generator. Find below the list of hardware and software you will need in order to run GeneXus and the applications generated by it. Hardware Requirements Processor: 500 MHz Intel Pentium class Memory: at least 128 MB of RAM (256 MB recommended) Page 3 Getting Started With GeneXus 9.0 Hard disk: at least 50 MB of free disk space to install the Development Environment, plus an average of 10 MB for each generator. To create GeneXus applications, you will need additional space or a shared disk to create the generated application’s Knowledge Bases. Video: 800 x 600 resolution or higher, with 256 colors Software Requirements Microsoft Windows with NT technology; Microsoft Windows 2000 or higher. If you are using Windows NT, you must install service pack 6a or higher. Microsoft .NET Framework 1.1 or 2.0 Redistributable Package 1 Microsoft Internet Explorer 6.0 SP1 or higher Microsoft SQL Server 2005 Express Edtion or any of the GeneXus