Openoffice.Org Base Macro Programming by Andrew Pitonyak

Total Page:16

File Type:pdf, Size:1020Kb

Openoffice.Org Base Macro Programming by Andrew Pitonyak OpenOffice.org Base Macro Programming By Andrew Pitonyak Last Modified Tuesday, July 28, 2009 at 09:54:04 PM Document Revision: 43 Information Page Copyright This document is Copyright © 2005-2009 by its contributors as listed in the section titled Authors. You can distribute it and/or modify it under the terms of the Creative Commons Attribution License, version 2.0 or later (http://creativecommons.org/licenses/by/2.0/). All trademarks within this guide belong to their legitimate owners. Authors Andrew Pitonyak Feedback Maintainer: Andrew Pitonyak [[email protected]] Please direct any comments or suggestions about this document to: [email protected] Acknowledgments I find it difficult to properly credit all of my sources, because so many people are helpful in an en devour of this size. There are, however, a few people who do indeed stand out in my mind as having provided significant encouragement. I have no explanation as to precisely why my wife Michelle allows me to spend so much time working with OpenOffice.org. Perhaps she is really the person that you should thank for my productivity. I Love you Michelle, you complete me. All of the people with whom I have interacted at Sun Microsystems have been very tolerant and patient with my endless questions. In the creation of this document, Frank Schönheit, however stands out in this regard. Mr. Schönheit spends a lot of time helping people with problems and questions, and most notable for me, he answers my questions. Thank you Frank! There is a large community volunteering their time with OpenOffice.org. Drew Jensen has stood out in my mind as an incredibly prolific and knowledgeable individual. Drew clearly has vast experience using database products, and he has brought this vast experience to the OOo community. He has created numerous excellent examples on the OOo Forums and mailing lists. Thank you Drew. There is a large community of helpers, who are simply too numerous to mention. I owe you all a thank you for your help and encouragement. In the general community, however, I will single out G. Roderick Singleton, who helps numerous people every day on the mailing lists. He also very proactive in keeping the documentation up-to-date. Mr. Singleton, I thank you for all of your help as well. This document is updated a lot, so it hardly makes sense to track changes at this time. Perhaps when I come up with at least a version 1.0. Table 1. Modification History Date Comment 9/23/06 Integrated changes from Jo <[email protected]> 3/13/07 Moved document to a new format. 4/4/07 Discovered that I did NOT transfer the macros. 1/30/08 Comments related to fields in forms. 2/18/08 New changes coming for OOo 3.0; watch out! I encourage people to turn on change tracking in OOo (Edit > Changes > Record) and make corrections, enhancements, and/or updates to this document. When you are finished, please send the document to me for integration into the final document. Please make note of the “Last Modified” date (Tuesday, July 28, 2009 at 09:54:04 PM) and the revision number (43) so that I will know if you have the latest document version, which makes my life much easier. iii Table of Contents Information Page........................................................................................................................2 Copyright...............................................................................................................................2 Authors..................................................................................................................................2 Feedback...............................................................................................................................2 Acknowledgments.................................................................................................................2 Table of Contents.......................................................................................................................v 1. Introduction...........................................................................................................................1 1.1. Introductory comments.................................................................................................1 1.2. Document organization and introduction......................................................................1 1.3. Prepare for big changes in OOo 3.0..............................................................................2 2. Storing images (binary data) in Base....................................................................................4 2.1. Create the initial Base document...................................................................................4 2.1.1. Using the GUI........................................................................................................4 2.1.2. Using a macro........................................................................................................4 2.1.3. Using a macro to open the wizard.........................................................................5 2.2. Create the table..............................................................................................................5 2.2.1. Using the GUI........................................................................................................5 2.2.2. Using a macro........................................................................................................6 2.2.3. Using SQL statements to modify tables................................................................8 2.2.4. Refresh the tables..................................................................................................8 2.2.5. Creating and deleting tables using SQL................................................................9 2.2.6. Increase a field©s length.......................................................................................11 2.3. Create a form...............................................................................................................11 2.3.1. Using the GUI......................................................................................................11 2.3.2. Using a macro......................................................................................................13 2.4. Open a form using a macro.........................................................................................17 2.5. Accessing the binary data............................................................................................20 2.5.1. Adding binary data..............................................................................................20 2.5.2. Extracting binary data..........................................................................................22 3. One-To-Many relationships................................................................................................25 3.1. Create the tables..........................................................................................................25 3.1.1. Create the DEALER table...................................................................................25 3.1.2. Create the ITEM table.........................................................................................26 3.2. Define the data relationships.......................................................................................28 3.3. Add data to the DEALER and ITEM tables................................................................29 4. Forms..................................................................................................................................32 4.1. The internal object model............................................................................................32 4.1.1. A control©s shape is in the draw page..................................................................32 4.1.2. A draw page contains forms................................................................................33 4.1.3. A control©s data model is in a form......................................................................34 4.1.4. A control©s view model is in the controller..........................................................35 v 4.1.5. Enabling and setting controls visible ± an example............................................36 4.1.6. Finding a control from an event ± an example....................................................36 4.1.7. Control connected to a database..........................................................................37 4.1.8. Control model summary......................................................................................38 4.2. Database Forms act like a result set............................................................................38 4.2.1. Duplicate record macro.......................................................................................39 4.3. Show one item and the corresponding dealer.............................................................42 4.4. Use a combo box with the dealer id............................................................................44 4.5. Use a list box with the dealer name............................................................................45 4.6. Relations in a single table...........................................................................................47 4.6.1. Solution................................................................................................................47 4.6.2. Solution
Recommended publications
  • Preview HSQLDB Tutorial (PDF Version)
    About the Tutorial HyperSQL Database is a modern relational database manager that conforms closely to the SQL:2011 standard and JDBC 4 specifications. It supports all core features and RDBMS. HSQLDB is used for the development, testing, and deployment of database applications. In this tutorial, we will look closely at HSQLDB, which is one of the best open-source, multi-model, next generation NoSQL product. Audience This tutorial is designed for Software Professionals who are willing to learn HSQL Database in simple and easy steps. It will give you a great understanding on HSQLDB concepts. Prerequisites Before you start practicing the various types of examples given in this tutorial, we assume you are already aware of the concepts of database, especially RDBMS. Disclaimer & Copyright Copyright 2016 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at [email protected]. i Table of Contents About the Tutorial ...................................................................................................................................
    [Show full text]
  • Staroffice 6.0 Software Setting up Database Connections
    StarOffice™ 6.0 Software Setting Up Database Connections Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 U.S.A. 650-960-1300 Part No. 817-0364-05 September 2002, Revision A Copyrights and Trademarks Copyright © 2002 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved. Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without limitation, these intellectual property rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or more additional patents or pending patent applications in the U.S. and in other countries. This document and the product to which it pertains are distributed under licenses restricting their use, copying, distribution, and decompilation. No part of the product or of this document may be repro- duced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. This product is based in part on the work of the Independent JPEG Group, The FreeType Project and the Catharon Typography Project. Portions Copyright 2000 SuSE, Inc. Word for Word Copyright © 1996 Inso Corp. International CorrectSpell spelling correction system Copyright © 1995 by Lernout & Hauspie Speech Products N.V. All rights reserved. Source code for portions of this product are available under the Mozilla Public License at the following sites: http://www.mozilla.org/, http://www.jclark.com/, and http://www.gingerall.com.
    [Show full text]
  • Base Handbook Copyright
    Version 4.0 Base Handbook Copyright This document is Copyright © 2013 by its contributors as listed below. You may distribute it and/or modify it under the terms of either the GNU General Public License (http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0/), version 3.0 or later. All trademarks within this guide belong to their legitimate owners. Contributors Jochen Schiffers Robert Großkopf Jost Lange Hazel Russman Martin Fox Andrew Pitonyak Dan Lewis Jean Hollis Weber Acknowledgments This book is based on an original German document, which was translated by Hazel Russman and Martin Fox. Feedback Please direct any comments or suggestions about this document to: [email protected] Publication date and software version Published 3 July 2013. Based on LibreOffice 4.0. Documentation for LibreOffice is available at http://www.libreoffice.org/get-help/documentation Contents Copyright..................................................................................................................................... 2 Contributors.............................................................................................................................2 Feedback................................................................................................................................ 2 Acknowledgments................................................................................................................... 2 Publication
    [Show full text]
  • Mysql Query Browser Mysql Query Browser This Is a Translation of the Mysql Query Browser Manual That Can Be Found at Dev.Mysql.Com
    MySQL Query Browser MySQL Query Browser This is a translation of the MySQL Query Browser Manual that can be found at dev.mysql.com. The original MySQL Query Browser Manual is in English, and this translation is not necessarily as up to date as the English version. Esta es una traduccion del manual de MySQL Query Browser el cual puede ser encontrado en dev.mysql.com. El Manual original de MySQL Query Browser se encuentra en Inglés, y esta traduccion no necesariamente es tan actualizada como la versión en Inglés. Edwin Cruz <ecruz @ medel.com.mx> ha traducido este manual del Inglés. El es gerente de sistemas y vive en Aguascalientes, México. Edwin cumplió su educación en 2005 con grado de ingenieria en ciencias de la computa- ción. Como desarrollador, Edwin ha estado trabajando con LAMP Stack por tres años. Antes de obtener su empleo actual, en una compañia de transporte, Edwin trabajo en Texas Instruments Mexico. Resumen Este es el Manual de MySQL Query Browser Documento generado en: 2010-03-14 (revision: 542) Copyright © 1997-2007 MySQL AB, 2008-2010 Sun Microsystems, Inc. All rights reserved. U.S. Government Rights - Commercial software. Govern- ment users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Use is sub- ject to license terms. Sun, Sun Microsystems, the Sun logo, Java, Solaris, StarOffice, MySQL Enterprise Monitor 2.0, MySQL logo™ and MySQL™ are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. UNIX is a registered trademark in the U.S.
    [Show full text]
  • Chapter 8 Getting Started with Base
    Getting Started Guide Chapter 8 Getting Started with Base OpenOffice.org’s Database Component Copyright This document is Copyright © 2008 by its contributors as listed in the section titled Authors. You may distribute it and/or modify it under the terms of either the GNU General Public License, version 3 or later, or the Creative Commons Attribution License, version 3.0 or later. All trademarks within this guide belong to their legitimate owners. Authors Dan Lewis Iain Roberts Magnus Adielsson Jean Hollis Weber Feedback Maintainer: Dan Lewis Please direct any comments or suggestions about this document to: [email protected] Acknowledgments As the maintainer of this document, I would like to personally thank the other authors of it. Without them, this document would not have the quality it does. Neither would it contain as much information. Iain Roberts and Magnus Adielsson offered many sound suggestions on content as well as format. Jean Hollis Weber with many years of technical writing experience has suggested many changes which have made this document much more understandable. Special thanks also go to those who have translated this document into other languages so that non-English speaking people have access to this information. Publication date and software version Published 13 October 2008. Based on OpenOffice.org 3.0. You can download an editable version of this document from http://oooauthors.org/en/authors/userguide3/published/ Contents Copyright...............................................................................................2
    [Show full text]
  • Oracle/Sun Microsystems: the Challenge of Reviewing a Merger Involving Open Source Software
    Mergers Oracle/Sun Microsystems: The challenge of reviewing a merger involving open source software Carl-Christian Buhr, Sabine Crome, Adrian Lübbert, Vera Pozzato, Yvonne Simon, Robert Thomas (1) 1. Introduction (1) 2. Oracle, Sun and the IT stack On 21 January 2010 the Commission uncondition- The US company Oracle is a major business soft- ally cleared the planned takeover of Sun Microsys- ware vendor. It develops and distributes enterprise tems (‘Sun’), a software and hardware vendor, by software solutions and related services, including Oracle Corporation (‘Oracle’), one of the world’s middleware, databases and enterprise application leading software companies. The clearance followed software. Sun is active in hardware (servers, desk- an extensive investigation into the database market tops, microelectronics, and storage devices) and where Oracle was the leading proprietary vendor software, including operating systems, Java software and Sun the leading open source vendor. The case development technology, middleware, database soft- also attracted a certain level of public attention and ware and related services. triggered reactions by many parties. The legal test The product offerings of Oracle and Sun can be applied in this case was not based on the acquisi- seen as part of an IT or technology ‘stack’ which tion or strengthening of a dominant position but consists of the various hardware and software on the elimination of an important competitive components necessary for companies to ultimate- force, which would be Sun’s MySQL. The Horizon- ly use business software applications. Hardware tal Merger Guidelines (2) recognize that some firms, products, including servers, storage units and despite having a relatively small market share may client PCs, constitute the first layer.
    [Show full text]
  • Oracle® Virtual Desktop Infrastructure Update Guide for Version 3.2.2
    Oracle® Virtual Desktop Infrastructure Update Guide for Version 3.2.2 April 2011 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065.
    [Show full text]
  • Netbeans Crud Desktop Application
    Netbeans Crud Desktop Application Is Erny eosinophilic or gabbroitic when disparages some telephoner observes microscopically? Stotious Ephrem caw: he fortify his grumpiness strongly and worshipfully. Is Sampson always cable-laid and impassionate when upraising some guarders very lustily and priggishly? Create GUl ApplicationDesktop Application with Login System CRUD. I often find another need got a quick CRUD application to database Read Update. This document is based on these Ant-based NetBeans CRUD Application Tutorial. CRUD generation and multiple tables in Netbeans IDE Users. The NetBeans Platform provides all of these out of drain box. The user interface for contributing an observable collection on hold because of your free account is a comment form width and try again and choose connect and news. In this tutorial we show about how they develop a web application CRUD. This tutorial covers implementing CRUD database operations using Java Persistence APIJPA for desktop applications. The application to confirm your ui application in five columns of their respective codes to create much. It prompts that when out our support or any sources page of a desktop database. Select the Java category from Projects select Java Application. I create help creating a simple Java database type application. Creating NetBeans Platform CRUD Application Using Maven. To build a basic Angular 11 CRUD application with Reactive Forms that includes. Flutter sqlite crud Persistent storage can be local for caching network calls. Recommend Grails myself included if I need two simple CRUD web framework but cost me. Want to test that provides useful methods in netbeans ide generates a larger application.
    [Show full text]
  • Full-Graph-Limited-Mvn-Deps.Pdf
    org.jboss.cl.jboss-cl-2.0.9.GA org.jboss.cl.jboss-cl-parent-2.2.1.GA org.jboss.cl.jboss-classloader-N/A org.jboss.cl.jboss-classloading-vfs-N/A org.jboss.cl.jboss-classloading-N/A org.primefaces.extensions.master-pom-1.0.0 org.sonatype.mercury.mercury-mp3-1.0-alpha-1 org.primefaces.themes.overcast-${primefaces.theme.version} org.primefaces.themes.dark-hive-${primefaces.theme.version}org.primefaces.themes.humanity-${primefaces.theme.version}org.primefaces.themes.le-frog-${primefaces.theme.version} org.primefaces.themes.south-street-${primefaces.theme.version}org.primefaces.themes.sunny-${primefaces.theme.version}org.primefaces.themes.hot-sneaks-${primefaces.theme.version}org.primefaces.themes.cupertino-${primefaces.theme.version} org.primefaces.themes.trontastic-${primefaces.theme.version}org.primefaces.themes.excite-bike-${primefaces.theme.version} org.apache.maven.mercury.mercury-external-N/A org.primefaces.themes.redmond-${primefaces.theme.version}org.primefaces.themes.afterwork-${primefaces.theme.version}org.primefaces.themes.glass-x-${primefaces.theme.version}org.primefaces.themes.home-${primefaces.theme.version} org.primefaces.themes.black-tie-${primefaces.theme.version}org.primefaces.themes.eggplant-${primefaces.theme.version} org.apache.maven.mercury.mercury-repo-remote-m2-N/Aorg.apache.maven.mercury.mercury-md-sat-N/A org.primefaces.themes.ui-lightness-${primefaces.theme.version}org.primefaces.themes.midnight-${primefaces.theme.version}org.primefaces.themes.mint-choc-${primefaces.theme.version}org.primefaces.themes.afternoon-${primefaces.theme.version}org.primefaces.themes.dot-luv-${primefaces.theme.version}org.primefaces.themes.smoothness-${primefaces.theme.version}org.primefaces.themes.swanky-purse-${primefaces.theme.version}
    [Show full text]
  • Oracle Open Office Frequently Asked Questions
    Oracle Open Office: Frequently Asked Questions Overview processing, spreadsheets, presentations, drawing, database, mail and calendar, and Web publishing. Its user interface is You need to cut costs without sacrificing productivity. Because intuitive and easy to use. Plus, it’s multiplatform and available you may have a significant investment in Microsoft Office on the Microsoft Windows, Macintosh OS X, and Linux documents and files, you may feel as if you have no choice but platforms, as well as on Oracle Solaris operating system (OS). to upgrade to the next version of Microsoft Office or renew What are they key features in Oracle Open Office 3? your three-year maintenance contract when it comes due. Briefly, key features include But there is an alternative to Microsoft Office that is being used by millions of businesses and individuals around the • Many productivity features that make common tasks much world. Oracle Open Office 3 software is a complete, feature- easier to perform rich office productivity product that costs approximately 75 • Support for Microsoft Windows (32 bit and 64 bit), Oracle percent less than Microsoft Office. It includes powerful Solaris, Macintosh OS X, and Linux programs for word processing, spreadsheets, presentations, drawing, database, graphics, and Web publishing. Its user • PDF import, editing, and export interface is intuitive and easy to use. It offers improved • Microsoft Office compatibility, blog and wiki publishing Import of Microsoft Office files, including 2007 XML files features, and the ability to edit PDF documents—all in a • Web participation tools such as a blogger and wiki publisher multiplatform office suite that is available on Microsoft Windows, Oracle Solaris, Macintosh OS X, and Linux • Antialiasing platforms.
    [Show full text]
  • Main Page 1 Main Page
    Main Page 1 Main Page FLOSSMETRICS/ OpenTTT guides FLOSS (Free/Libre open source software) is one of the most important trends in IT since the advent of the PC and commodity software, but despite the potential impact on European firms, its adoption is still hampered by limited knowledge, especially among SMEs that could potentially benefit the most from it. This guide (developed in the context of the FLOSSMETRICS and OpenTTT projects) present a set of guidelines and suggestions for the adoption of open source software within SMEs, using a ladder model that will guide companies from the initial selection and adoption of FLOSS within the IT infrastructure up to the creation of suitable business models based on open source software. The guide is split into an introduction to FLOSS and a catalog of open source applications, selected to fulfill the requests that were gathered in the interviews and audit in the OpenTTT project. The application areas are infrastructural software (ranging from network and system management to security), ERP and CRM applications, groupware, document management, content management systems (CMS), VoIP, graphics/CAD/GIS systems, desktop applications, engineering and manufacturing, vertical business applications and eLearning. This is the third edition of the guide; the guide is distributed under a CC-attribution-sharealike 3.0 license. The author is Carlo Daffara ([email protected]). The complete guide in PDF format is avalaible here [1] Free/ Libre Open Source Software catalog Software: a guide for SMEs • Software Catalog Introduction • SME Guide Introduction • 1. What's Free/Libre/Open Source Software? • Security • 2. Ten myths about free/libre open source software • Data protection and recovery • 3.
    [Show full text]
  • Avanquest Partners with Sun to Make New Staroffice
    AVANQUEST PARTNERS WITH SUN TO MAKE NEW STAROFFICE SOFTWARE WIDELY AVAILABLE TO RETAIL CUSTOMERS IN EUROPE Agreement with Sun completely aligned with Avanquest Strategy to Publish World-Class Software ______________________________________________________________________________________ PARIS – October 10, 2005 – Avanquest Software (EURONEXT: AVQ), today announced their agreement with Sun Microsystems to make StarOffice™ 8 software, the latest version of the award-winning desktop productivity suite, available in ten countries in Europe. As part of the agreement, Avanquest will make StarOffice 8 software available to consumers throughout Europe, downloadable versions of StarOffice 8 software will be shortly available through Avanquest Online stores in France, Belgium, Germany, Austria, Switzerland and the UK. Online shoppers in Italy, Spain and Portugal will be able to download the software from Avanquest Online by end-October, with the retail boxed version of StarOffice 8 also available through more than 5,000 retail outlets Europe-wide by the end of the month. StarOffice 8 software is an easy-to-use office productivity suite with powerful word processing, spreadsheet, presentation, drawing and database capabilities. Based on open source technology, OpenOffice.org, StarOffice 8 software runs on Windows, Linux and the Solaris Operating System. The suite is comprised of five key components: StarOffice Writer, Impress, Calc, Base and Draw. StarOffice 8 software, an affordable alternative to other leading office suites, is the first commercial office suite using the Open Document Format for Office Applications, the OASIS open standard that allows users to own their own data and not be locked into a particular vendor’s office suite in order to access the data.. The Open Document format provides improved interoperability and enhanced programmability and is increasingly endorsed by the European Union, as well as the U.S.
    [Show full text]