Writing Your First U2 Application

Total Page:16

File Type:pdf, Size:1020Kb

Writing Your First U2 Application Writing your first Rocket U2 Application Brian Leach Writing Your First UniVerse or UniData Application Brian Leach About this Book The book is available in published form or as a free download in PDF format from Brian Leach (www.brianleach.co.uk). You may distribute it freely. About the Author Brian Leach is an independent U2 and MultiValue consultant based in the UK. Brian has worked with UniVerse since 1989 and has designed some of the most advanced development and reporting tools in the U2 market. Brian is a past President of the International U2 User Group, of which he was a founder board member. You can contact the author at www.brianleach.co.uk. Table of Contents About this Book ....................................................................................................................... 4 About the Author ............................................................................................................. 4 Acknowledgements .......................................................................................................... 8 Thank You ......................................................................................................................... 8 Introduction ............................................................................................................................. 9 UniVerse or UniData?..................................................................................................... 10 What we will cover ......................................................................................................... 10 Who Should Read This Guide ......................................................................................... 11 Getting Up and Running .................................................................................................... 12 Installing the Demonstration Database ......................................................................... 13 Installing Visual Studio ................................................................................................... 14 Exploring the Demonstration Database ................................................................................ 15 Starting from the Top - Account Structure .................................................................... 17 Moving between Accounts ............................................................................................ 19 Starting your Application ....................................................................................................... 20 Introducing the U2 Object model ...................................................................................... 21 Starting an Application ................................................................................................... 22 Adding the Namespace .................................................................................................. 24 Creating the Connection ................................................................................................ 26 Data and Files..................................................................................................................... 31 Listing the Files in your Account .................................................................................... 31 The Demonstration Files ................................................................................................ 32 Listing File Content ............................................................................................................ 33 Records and Keys ........................................................................................................... 34 Files and Dictionaries ......................................................................................................... 35 Listing a File Dictionary................................................................................................... 36 Listing Fields ................................................................................................................... 37 Virtual Fields ...................................................................................................................... 38 Related Fields ................................................................................................................. 40 Running Commands ........................................................................................................... 41 Creating the Book Titles Form ........................................................................................... 45 Reading and Writing Records ......................................................................................... 47 Opening a File ................................................................................................................. 48 Reading a Record ............................................................................................................ 48 Dynamic Arrays .................................................................................................................. 49 Triggering a Read Event .................................................................................................. 51 Locking Records .............................................................................................................. 52 Writing Changes ............................................................................................................. 54 Adding New Records ...................................................................................................... 55 XML Listings and Browsing ................................................................................................. 55 The UniXML Class ........................................................................................................... 56 Selecting from the Grid .................................................................................................. 58 MultiValued Data ............................................................................................................... 58 Inside the Record Structure ........................................................................................... 60 MultiValued Keys ........................................................................................................... 61 Reading Multiple Records .................................................................................................. 61 Part 2 - Server Coding ............................................................................................................ 65 Server Side Programming ............................................................................................... 65 Creating and Running Programs..................................................................................... 66 Your First Server Program .............................................................................................. 67 Compiling your Program ................................................................................................ 68 Running your Program ................................................................................................... 70 Examining the Syntax ..................................................................................................... 70 Reading Data ...................................................................................................................... 71 Using Dynamic Arrays ........................................................................................................ 73 Using Constants ................................................................................................................. 75 Creating a Subroutine ........................................................................................................ 76 Calling a Subroutine from the Server ................................................................................ 79 Calling Subroutines from the Client ...................................................................................... 81 Server-side updates ........................................................................................................... 85 Server Side Validation ........................................................................................................ 87 Calling Internal Subroutines .............................................................................................. 88 Adding Locking ................................................................................................................... 90 Variable Scope and Persistence ......................................................................................... 92 Creating a Common Block .............................................................................................. 93 Placing File Variables in Common .................................................................................. 94 Conclusion.......................................................................................................................... 96 From the Author ................................................................................................................ 97 Acknowledgements UniVerse, UniData and UniObjects are registered trademarks of Rocket U2. UNIX is a registered trademark in the United States of America and other countries, licensed exclusively through X/Open Company Ltd. Microsoft, Windows, Windows
Recommended publications
  • Technology Bigot?
    $7.00 U.S. INTERNATIONAL ® SSpecpecTHE MULTIVALUE TECHNOLOGYttrr MAGAZINumumE I MARCH/APRIL 2015 Are You a Technology Bigot? Also in this Issue y Rocket U2 talks about UniData 8.1 y OAUTH 2 Login with MultiValue BASIC y Clif Notes New Blood – Part 2 intl-spectrum.com GET CONNECTED. K NOWLEDGE AND E DUCATION FOR THE MULTIV ALUE PROFESSIONAL. A BOUT O UR PROFESSIONAL ME M BERSHIP We are all busy in our day-to-day work and staying up-to-date with the current MultiValue technologies can be difficult. Professional Memberships provide you access to knowledge, solutions, information, and code that you won’t find in other locations. Professional Membership Includes: t Magazine in Electronic and Print Formats t Newsletter t On-Demand Videos t Live Webinars t Discounted Conference Rates t Research papers t Case Studies t Source Code http://www.intl-spectrum.com/membership/ INTERNATIONAL ® SSpecpecTHE MULTIVALUE tt TErrCHNOLOGYumum MAGAZINE Are you a Technology FEATURES I MARCH/APRIL 2015 6 Bigot? When all you have is a hammer... Are we selecting technology for projects based upon what we like Rocket U2 talks about UniData 8.1 Rocket U2 has to use, or are we making objective 9 released UniData 8.1 with many new features and enhanced choices? Kevin King attempts to resolve functionality. This release provides features such as true 64-bit the age old question: Which technology Architecture, IPv6 integration, and Python integration. Charles is best? BY KEVIN KING interviews Vinnie Smith, Michael Byrne, John Zagnoli, Heather Smiles, and John Nunziato at Rocket Software to see how the release of UniData 8.1 provides enhanced value to UniData customers.
    [Show full text]
  • The World Is Not Flat and Neither Is Your Business. So Why Should Your Data Be?
    A R EVELATION W HITE P APER The world is not flat and neither is your business. So why should your data be? Revelation Software’s Post Relational, Multi-Dimensional Database Environment. Contents CONTENTS 3 INTRODUCTION 4 The Purpose of this White Paper 5 DISCUSSION 6 MultiValue – An evolution based on success 6 Revelation’s ARev and OpenInsight 7 Maintaining a competitive edge over RDBMS 8 Supporting Embedded DBMS ISVs 9 Optimising systems for a modern world 11 Market Stats 12 CONCLUSION 13 APPENDIX A 15 APPENDIX B 18 APPENDIX C 23 APPENDIX D 27 COPYRIGHT NOTICE © 2006 Revelation Software Limited. All rights reserved. No part of this publication may be reproduced by any means, be it transmitted, transcribed, photocopied, stored in a retrieval system, or translated into any language in any form, without the written permission of Revelation Software Limited. TRADEMARK NOTICE OpenInsight is a registered trademark of Revelation Technologies, Inc. Advanced Revelation is a registered trademark of Revelation Technologies, Inc. OpenInsight for Workgroups is a registered trademark of Revelation Technologies, Inc. Report Builder+ is a trademark of Revelation Technologies, Inc. Microsoft, MS, MS-DOS and Windows are registered trademarks of Microsoft Corporation in the USA and other countries. IBM, U2, UniData and the IBM e-business logo are registered trademarks of International Business Machines Corporation. Intel is a registered trademark of Intel Corporation. Lotus, Lotus Notes and Notes are registered trademarks of Lotus Development Corporation. All other product names are trademarks or registered trademarks of their respective owners. Introduction The world is not flat and neither is your business.
    [Show full text]
  • Virtualization and the U2 Databases
    Virtualization and the U2 Databases Brian Kupzyk Senior Technical Support Engineer for Rocket U2 Nik Kesic Lead Technical Support for Rocket U2 Opening Procedure . Orange arrow allows you to manipulate the GoTo Webinar control panel . This webinar will be recorded and posted to our Rocket U2 web site for you to replay at a later date . You will be notified once they are posted . If using phone – don’t select Use Mic & Speakers . All attendees are muted during the presentation . Fifteen minute Q&A session – after the presentation 2 Nik Kesic’s Bio . Joined Unidata in 1995 . ATS (Advanced Technical Support), U2 Common Clients and DB tools . College degree in Telecommunications . Provides consultancy, Level 3 support and training . Published articles on web enablement using RedBack, Sockets, XML, SOAP, SSL and Encryption . MCP (Microsoft Certified Professional) in networks . Current role: Lead Technical Support for Rocket U2 3 Brian Kupzyk’s Bio . Joined Informix in 2000 . B.S., Information Systems, Metropolitan State College of Denver . M.S., Information Systems, University of Colorado at Denver . Expertise: UniData®, UniVerse®, SB+ and SB/XA, emphasis in general components, installation, and licensing . Developer for uvdiag and udtdiag on UNIX, U2 Resource Kit, XDEMO Account . Authored various articles from U2 Support (Technotes) over the years including: ‘How To Authorize UniVerse 10.2.x and Higher’, ‘Understanding the SB+ and SB/XA Security API’ . Current role: Senior Technical Engineer for Rocket U2 4 Agenda . Webinar Origins . Virtualization Architecture . Popular Virtualization Products . Rocket U2 Support for Virtualization . UNIX Tuning Considerations for Virtualization . Windows Tuning Considerations for Virtualization . Case Study .
    [Show full text]
  • Featuring the Multivalue Database Players Featuring the Multivalue Database Players
    INSIDE! UNLOCK THE POWER OF YOUR MULTIVALUE DATABASE $7.00 U.S. INTERNATIONAL ® SPECTRUMSPECTRUMTHE BUSINESS COMPUTER MAGAZINE MAY/JUNE 2002 • AN IDBMA, INC. PUBLICATION IndependentIndependent Databa se Revie Featur Appearing! ing Featuring the M Database Review ult PLAYERS iV DatabaseDATABASE a DatabaseMULTIVALUE l Now Appearing! Review of the tabases MV Da IndustryIndustry yers base Pla eData ReviewReviewFeaturing the MultiValue Database Players Come in from the rain Featuring the UniVision MultiValue database - compatible with existing applications running on Pick AP, D3, R83, General Automation, Mentor, mvBase and Ultimate. We’re off to see the WebWizard Starring a “host” centric web integration solution. Watch WebWizard create sophisticated web-based applications from your existing computing environment. Why a duck? Featuring ViaDuct 2000, the world’s easiest-to-use terminal emulation and connectivity software, designed to integrate your host data and applications with your Windows desktop. Caught in the middle? With an all-star cast from the WinLink32 product family (ViaOD- BC, ViaAPI for Visual Basic, ViaObjects, and mvControls), Via Sys- tems’ middleware solutions will entertain (and enrich!) you. Appearing soon on a screen near you. Advanced previews available from Via Systems. Via Systems Inc. 660 Southpointe Court, Suite 300 Colorado Springs, Colorado 80906 Phone: 888 TEAMVIA Fax: 719-576-7246 e-mail: [email protected] On the web: www.via.com The Freedom To Soar. With jBASE – the remarkably liberating multidimensional database – there are no limits to where you can go. Your world class applications can now run on your choice of database: jBASE, Oracle, SQL Server or DB2 without modification and can easily share data with other applications using those databases.
    [Show full text]
  • Rocket D3 Database Management System
    datasheet Rocket® D3 Database Management System Delivering Proven Multidimensional Technology to the Evolving Enterprise Ecient Performance: C#, and C++. In addition, Java developers can access Delivers high performance via Proven Technology the D3 data files using its Java API. The MVS Toolkit ecient le management For over 30 years, the Pick Universal Data Model (Pick provides access to data and business processes via that requires minimal system UDM) has been synonymous with performance and and memory resources both SOAP and RESTful Web Services. reliability; providing the flexible multidimensional Scalability and Flexibility: database infrastructure to develop critical transac- Scales with your enterprise, tional and analytical business applications. Based on from one to thousands of Why Developers the Pick UDM, the Rocket® D3 Database Manage- users ment System offers enterprise-level scalability and Choose D3 D3 is the choice of more than a thousand applica- Seamless Interoperability: efficiency to support the dynamic growth of any tion developers world-wide—serving top industries Interoperates with varied organization. databases and host including manufacturing, distribution, healthcare, environments through government, retail, and other vertical markets. connectivity tools Rapid application development and application Rocket D3 database-centric development environ- customization requires an underlying data structure Data Security: ment provides software developers with all the that can respond effectively to ever-changing Provides secure, simultaneous necessary tools to quickly adapt to changes and access to the database from business requirements. Rocket D3 is simplistic in its build critical business applications in a fraction of the remote or disparate locations structure, yet allows for complex definitions of data time as compared to other databases; without worldwide structures and program logic.
    [Show full text]
  • A Comparative Analysis of Punk in Spain and Mexico
    Brigham Young University BYU ScholarsArchive Theses and Dissertations 2018-07-01 El futuro ya está aquí: A Comparative Analysis of Punk in Spain and Mexico Rex Richard Wilkins Brigham Young University Follow this and additional works at: https://scholarsarchive.byu.edu/etd Part of the Spanish and Portuguese Language and Literature Commons BYU ScholarsArchive Citation Wilkins, Rex Richard, "El futuro ya está aquí: A Comparative Analysis of Punk in Spain and Mexico" (2018). Theses and Dissertations. 6997. https://scholarsarchive.byu.edu/etd/6997 This Thesis is brought to you for free and open access by BYU ScholarsArchive. It has been accepted for inclusion in Theses and Dissertations by an authorized administrator of BYU ScholarsArchive. For more information, please contact [email protected], [email protected]. El futuro ya está aquí: A Comparative Analysis of Punk Culture in Spain and Mexico Rex Richard Wilkins A thesis submitted to the faculty of Brigham Young University in partial fulfillment of the requirements for the degree of Master of Arts Brian Price, Chair Erik Larson Alvin Sherman Department of Spanish and Portuguese Brigham Young University Copyright © 2018 Rex Richard Wilkins All Rights Reserved ABSTRACT El futuro ya está aquí: A Comparative Analysis of Punk Culture in Spain and Mexico Rex Richard Wilkins Department of Spanish and Portuguese, BYU Master of Arts This thesis examines the punk genre’s evolution into commercial mainstream music in Spain and Mexico. It looks at how this evolution altered both the aesthetic and gesture of the genre. This evolution can be seen by examining four bands that followed similar musical and commercial trajectories.
    [Show full text]
  • Database Software Market: Billy Fitzsimmons +1 312 364 5112
    Equity Research Technology, Media, & Communications | Enterprise and Cloud Infrastructure March 22, 2019 Industry Report Jason Ader +1 617 235 7519 [email protected] Database Software Market: Billy Fitzsimmons +1 312 364 5112 The Long-Awaited Shake-up [email protected] Naji +1 212 245 6508 [email protected] Please refer to important disclosures on pages 70 and 71. Analyst certification is on page 70. William Blair or an affiliate does and seeks to do business with companies covered in its research reports. As a result, investors should be aware that the firm may have a conflict of interest that could affect the objectivity of this report. This report is not intended to provide personal investment advice. The opinions and recommendations here- in do not take into account individual client circumstances, objectives, or needs and are not intended as recommen- dations of particular securities, financial instruments, or strategies to particular clients. The recipient of this report must make its own independent decisions regarding any securities or financial instruments mentioned herein. William Blair Contents Key Findings ......................................................................................................................3 Introduction .......................................................................................................................5 Database Market History ...................................................................................................7 Market Definitions
    [Show full text]
  • Universe Installation Guide 1Introduction 0
    Rocket UniVerse Installation Guide Version 11.2.3 April 2014 UNV-1123-INST-1 Notices Edition Publication date: April 2014 Book number: UNV-113-INST-1 Product version: Rocket UniVerse V11.2.3 Copyright © Rocket Software, Inc. or its affiliates 1985-2014. All Rights Reserved. Trademarks Rocket is a registered trademark of Rocket Software, Inc. For a list of Rocket registered trademarks go to: www.rocketsoftware.com/about/legal. All other products or services mentioned in this document may be covered by the trademarks, service marks, or product names of their respective owners. Examples This information might contain examples of data and reports. The examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental. License agreement This software and the associated documentation are proprietary and confidential to Rocket Software, Inc., are furnished under license, and may be used and copied only in accordance with the terms of such license. Note: This product may contain encryption technology. Many countries prohibit or restrict the use, import, or export of encryption technologies, and current use, import, and export regulations should be followed when exporting this product. Contact information Website: www.rocketsoftware.com Rocket Software, Inc. Headquarters 77 4th Avenue, Suite 100 Waltham, MA 02451-1468 USA Tel: +1 781 577 4321 Fax: +1 617 630 7100 2 Contacting Technical Support If you have current support and maintenance agreements with Rocket Software, you can access the Rocket Customer Portal to report and track a problem, to submit an enhancement request or question, or to find answers in the Rocket Knowledgebase.
    [Show full text]
  • 8123 Songs, 21 Days, 63.83 GB
    Page 1 of 247 Music 8123 songs, 21 days, 63.83 GB Name Artist The A Team Ed Sheeran A-List (Radio Edit) XMIXR Sisqo feat. Waka Flocka Flame A.D.I.D.A.S. (Clean Edit) Killer Mike ft Big Boi Aaroma (Bonus Version) Pru About A Girl The Academy Is... About The Money (Radio Edit) XMIXR T.I. feat. Young Thug About The Money (Remix) (Radio Edit) XMIXR T.I. feat. Young Thug, Lil Wayne & Jeezy About Us [Pop Edit] Brooke Hogan ft. Paul Wall Absolute Zero (Radio Edit) XMIXR Stone Sour Absolutely (Story Of A Girl) Ninedays Absolution Calling (Radio Edit) XMIXR Incubus Acapella Karmin Acapella Kelis Acapella (Radio Edit) XMIXR Karmin Accidentally in Love Counting Crows According To You (Top 40 Edit) Orianthi Act Right (Promo Only Clean Edit) Yo Gotti Feat. Young Jeezy & YG Act Right (Radio Edit) XMIXR Yo Gotti ft Jeezy & YG Actin Crazy (Radio Edit) XMIXR Action Bronson Actin' Up (Clean) Wale & Meek Mill f./French Montana Actin' Up (Radio Edit) XMIXR Wale & Meek Mill ft French Montana Action Man Hafdís Huld Addicted Ace Young Addicted Enrique Iglsias Addicted Saving abel Addicted Simple Plan Addicted To Bass Puretone Addicted To Pain (Radio Edit) XMIXR Alter Bridge Addicted To You (Radio Edit) XMIXR Avicii Addiction Ryan Leslie Feat. Cassie & Fabolous Music Page 2 of 247 Name Artist Addresses (Radio Edit) XMIXR T.I. Adore You (Radio Edit) XMIXR Miley Cyrus Adorn Miguel Adorn Miguel Adorn (Radio Edit) XMIXR Miguel Adorn (Remix) Miguel f./Wiz Khalifa Adorn (Remix) (Radio Edit) XMIXR Miguel ft Wiz Khalifa Adrenaline (Radio Edit) XMIXR Shinedown Adrienne Calling, The Adult Swim (Radio Edit) XMIXR DJ Spinking feat.
    [Show full text]
  • Rocket Unidata Installation Guide Version 8.2.1
    Rocket UniData Installation Guide Version 8.2.1 July 2017 UDT-821-INST-1 Notices Edition Publication date: July 2017 Book number: UDT-821-INST-1 Product version: Version 8.2.1 Copyright © Rocket Software, Inc. or its affiliates 1996-2017. All Rights Reserved. Trademarks Rocket is a registered trademark of Rocket Software, Inc. For a list of Rocket registered trademarks go to: www.rocketsoftware.com/about/legal. All other products or services mentioned in this document may be covered by the trademarks, service marks, or product names of their respective owners. Examples This information might contain examples of data and reports. The examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental. License agreement This software and the associated documentation are proprietary and confidential to Rocket Software, Inc. or its affiliates, are furnished under license, and may be used and copied only in accordance with the terms of such license. Note: This product may contain encryption technology. Many countries prohibit or restrict the use, import, or export of encryption technologies, and current use, import, and export regulations should be followed when exporting this product. 2 Corporate information Rocket Software, Inc. develops enterprise infrastructure products in four key areas: storage, networks, and compliance; database servers and tools; business information and analytics; and application development, integration, and modernization. Website: www.rocketsoftware.com Rocket Global Headquarters 77 4th Avenue, Suite 100 Waltham, MA 02451-1468 USA To contact Rocket Software by telephone for any reason, including obtaining pre-sales information and technical support, use one of the following telephone numbers.
    [Show full text]
  • The Festival Quarterly
    THE FESTIVAL QUARTERLY Aleš Šteger Ayoko Mensah Alicja Gescinska Tomáš Sedláček Melanie Burge Simon Mundy 3 Aleš Šteger How to live after the end of reflection THE FESTIVAL QUARTERLY 6 Ayoko Mensah Eye-to-Eye... ...with those that inform, influence or inspire festival makers Afropolitan festivals: a challenge and making: the artist, the economist, the philosopher, the urban planner, the academic, the politician. The European Festivals Association’s (EFA) ‘The Festival Quarterly’ Eye-to-Eye assembles a variety of voices that speak Alicja Gescinska 9 about our society, the state of the arts and reasons why the On Music, Morality and Krzysztof Penderecki arts exist, concepts, and moments in contemporary life. It includes articles we commission and material we ask editors to provide. Eye-to-Eye offers a mosaic of reflections, opinion pieces, personal statements, seemingly unrelated yet 13 Tomáš Sedláček fitting with each other. It reflects EFA’s journey to broadenour Advantages of disadvantages, or don’t let conversations and dig into the habitat of festivals, taking us the quarantine slip through your fingers well beyond the process of festival making. Today we are sharing with you the very first issue: The Festival Quarterly’s Summer 2020 edition. We intend to publish 16 Melanie Burge Eye-to-Eye articles, film abstracts and material every 3 months. The pandemic’s immediate impact on We will develop this project with the experience of each performing arts in Australia edition: Eye-to-Eye will be an evolving project, taking into consideration the suggestions we will receive from festivals and our stakeholders community.
    [Show full text]
  • A Brief History of the Pick Environment in Australia Stasys Lukaitis
    A Brief History of the Pick Environment in Australia Stasys Lukaitis To cite this version: Stasys Lukaitis. A Brief History of the Pick Environment in Australia. IFIP WG 9.7 International Conference on History of Computing (HC) / Held as Part of World Computer Congress (WCC), Sep 2010, Brisbane, Australia. pp.146-158, 10.1007/978-3-642-15199-6_15. hal-01054657 HAL Id: hal-01054657 https://hal.inria.fr/hal-01054657 Submitted on 7 Aug 2014 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Distributed under a Creative Commons Attribution| 4.0 International License A Brief History of the Pick Environment in Australia Stasys Lukaitis School of Business Information Technology RMIT Melbourne Australia [email protected] Abstract. Mainstream Information Technology professionals have misunderstood the Pick environment for many years. The Pick environment has been conceived, designed and built with business solutions as its key driver. At its heyday there were over 3,000 business applications available across a very wide range of hardware platforms supporting from 1 to thousands of real time users. The tentative economic recovery of the 90’s and the Y2K fears created cautious and conservative corporate decision-making.
    [Show full text]