You are previewing Apache OFBiz Cookbook.
O'Reilly logo
Apache OFBiz Cookbook

Book Description

Over 60 simple but incredibly effective recipes for taking control of OFBiz

  • Optimize your OFBiz experience and save hours of frustration with this timesaving collection of practical recipes covering a wide range of OFBiz topics.

  • Get answers to the most commonly asked OFBiz questions in an easy-to-digest reference style of presentation.

  • Discover insights into OFBiz design, implementation, and best practices by exploring real-life solutions.

  • Each recipe in this Cookbook is crafted to describe not only "how" to accomplish a specific task, but also "why" the technique works to ensure you get the most out of your OFBiz implementation.

In Detail

Apache Open For Business (OFBiz) is an enterprise resource planning (ERP) system that provides a common data model and an extensive set of business processes. But without proper guidance on developing performance-critical applications, it is easy to make the wrong design and technology decisions. The power and promise of Apache OFBiz is comprehensively revealed in a collection of self-contained, quick, practical recipes in this Cookbook.

This book covers a range of topics from initial system setup to web application and HTML page creation, Java development, and data maintenance tasks. Focusing on a series of the most commonly performed OFBiz tasks, it provides clear, cogent, and easy-to-follow instructions designed to make the most of your OFBiz experience.

Let this book be your guide to enhancing your OFBiz productivity by saving you valuable time. Written specifically to give clear and straightforward answers to the most commonly asked OFBiz questions, this compendium of OFBiz recipes will show you everything you need to know to get things done in OFBiz.

Whether you are new to OFBiz or an old pro, you are sure to find many useful hints and handy tips here. Topics range from getting started to configuration and system setup, security and database management through the final stages of developing and testing new OFBiz applications.

Unlock the power and promise of Apache OFBiz with this comprehensive collection of concise, insightful, and proven recipes, timesaving techniques, and helpful hints.

Table of Contents

  1. Apache OFBiz Cookbook
    1. Apache OFBiz Cookbook
    2. Credits
    3. About the Author
    4. About the Reviewers
    5. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Errata
        2. Piracy
        3. Questions
    6. 1. Getting Started
      1. Introduction
      2. Getting the project code
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      3. Getting code from the Subversion repository
        1. Getting ready
        2. How to do it...
          1. How it works...
          2. See also
      4. Fixing IP port collision errors
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. The JAVA_HOME setting
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      6. "Class Not Found" errors
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      7. Installation verification
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      8. SSL verification
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      9. Running JUnit tests
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      10. Locating an OFBiz Component
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      11. Locating an OFBiz Application
        1. Getting ready
        2. How to do it...
          1. How it works...
          2. There's more...
    7. 2. Java Development
      1. Introduction
      2. Java runtime CLASSPATH
        1. How to do it...
        2. How it works...
      3. Java compile time CLASSPATH
        1. Getting ready
        2. How to do it...
        3. How it works...
      4. Naming conventions
        1. How to do it...
      5. Writing OFBiz Java Events
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      6. Writing OFBiz Java Services
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      7. Debugging using the logfile
        1. Getting ready
        2. How to do it...
        3. How it works...
      8. Calling OFBiz Services from a Java program
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      9. Getting and validating request parameters (Events)
        1. How to do it...
        2. How it works...
        3. There's more...
      10. Getting and validating request parameters (Services)
        1. How to do it...
        2. How it works...
      11. Managing error messages
        1. How to do it...
          1. There's more...
      12. Using Java properties files
        1. How to do it...
        2. How it works...
        3. See also
      13. Sending e-mail from an OFBiz Event or Service
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      14. Handling XML files
        1. Getting ready
        2. How to do it...
        3. How it works...
    8. 3. The User Interface
      1. Introduction
      2. Creating HTML web pages
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Adding actions to Screen widgets
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. HTML markup in Screen widgets
        1. How to do it...
        2. How it works..
        3. There's more...
      5. CSS styling in Screen widgets
        1. How to do it...
        2. How it works...
        3. There's more...
      6. Platform-specific widgets
        1. How to do it...
        2. How it works...
        3. There's more...
      7. OFBiz Tree widgets
        1. How to do it...
        2. How it works...
        3. There's more...
      8. OFBiz Menu widgets
        1. How to do it...
        2. How it works...
      9. OFBiz Form widgets
        1. How to do it...
        2. How it works...
        3. There's more..
      10. Creating web pages using FreeMarker
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more
        5. See also
      11. Passing Screen widget parameters to FreeMarker
        1. How to do it...
        2. How it works
        3. There's more
      12. Calling Java methods from FreeMarker
        1. How to do it...
        2. How it works...
        3. There's more...
      13. Forcing FreeMarker to render HTML markup
        1. How to do it...
        2. How it works
      14. Uploading files in FreeMarker forms
        1. Getting ready
        2. How to do it...
          1. How it works...
          2. There 's more...
    9. 4. OFBiz Services
      1. Introduction
      2. Managing existing OFBiz Services
        1. How to do it...
        2. How it works...
        3. There's more...
      3. Calling a Service from an HTML form
        1. Getting ready
        2. How to do it...
        3. How it works...
      4. Calling asynchronous Services from HTML forms
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. Calling a Service many times from an HTML form
        1. How to do it...
          1. How it works...
      6. Creating a new Service definition file
        1. How to do it...
        2. How it works...
      7. Creating a new Service definition
        1. How to do it...
        2. How it works...
        3. See also
      8. Implementing Services
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      9. Defining Service attributes (INPUT/OUTPUT)
        1. How to do it...
        2. How it works...
      10. Service Event Condition Actions
        1. Getting ready
          1. How to do it...
          2. How it works...
          3. There's more...
      11. Service groups
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      12. Handling Service errors
        1. Getting ready
        2. How to do it...
          1. How it works...
          2. See also
      13. Writing Groovy Services
        1. Getting ready
          1. How to do it...
          2. How it works...
      14. Mail Event Condition Actions
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      15. Entity Event Condition Actions
        1. How to do it...
        2. How it works...
        3. There's more...
        4. See also
    10. 5. The OFBiz Entity Engine
      1. Introduction
      2. Changing the default database
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      3. Connecting to a remote database
        1. Getting ready
        2. How to do it...
        3. How it works...
      4. Connecting to multiple databases
        1. Getting ready
        2. How to do it...
        3. How it works...
      5. Creating entity groups
        1. Getting ready
        2. How to do it...
        3. How it works...
      6. Disabling automatic database checks
        1. Getting ready
        2. How to do it...
        3. How it works...
      7. Mapping database data types
        1. Getting ready
          1. How to do it...
          2. How it works...
            1. Creating a new entity definition file
          3. How to do it...
          4. How it works...
      8. Creating a new entity model
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      9. Modifying an existing entity model
        1. Getting ready
          1. How to do it...
          2. How it works...
      10. Building a view-entity
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
    11. 6. OFBiz Security
      1. Introduction
      2. Securing communications ports
        1. How to do it...
        2. How it works...
        3. There's more...
        4. See also
      3. Disabling demonstration user accounts
        1. How to do it...
        2. How it works...
      4. Protecting OFBiz web pages
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. Creating user accounts
        1. How to do it...
        2. How it works...
        3. There's more...
      6. Protecting applications using security groups
        1. How to do it...
        2. How it works...
        3. There's more...
      7. Protecting views ("Tarpitting")
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      8. Retrieving forgotten passwords
        1. Getting ready
        2. How to do it...
        3. How it works...
      9. Changing your password
        1. How to do it...
        2. How it works...
      10. Adding or changing SSL certificates
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. See also
      11. OFBiz single sign-on and the external login key
        1. Getting ready
        2. How to do it...
          1. How it works...
          2. There's more...
    12. 7. WebTools
      1. Introduction
      2. Cache maintenance
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      3. Changing debug settings
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Exporting database data to XML documents
        1. Getting ready
        2. How to do it...
        3. How it works...
      5. Loading database(s) from XML documents
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      6. Managing internationalization labels
        1. Getting ready
        2. How to do it...
        3. How it works
        4. There's more...
      7. Using the SQL processor
        1. Getting ready
        2. How to do it...
        3. How it works...
      8. Exploring the entity reference tool
        1. Getting ready
        2. How to do it...
        3. How it works...
      9. Viewing OFBiz usage statistics
        1. Getting ready
        2. How to do it...
        3. How it works...
      10. Uncovering artifact information
        1. Getting ready
        2. How to do it...
        3. How it works...
      11. Working with temporal expressions
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    13. 8. Web Services
      1. Introduction
      2. Requesting web services using URL parameters
        1. Getting ready
        2. How to do it...
          1. How it works...
          2. There's more...
      3. Requesting web services using an HttpClient
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      4. Creating HttpClients and passing XML documents
        1. Getting ready
        2. How to do it...
        3. How it works...
      5. Creating XML-RPC web service clients
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      6. Becoming an XML-RPC web service provider
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      7. OFBiz SOAP messaging clients
        1. Getting ready
          1. How to do it...
          2. How it works...
          3. There's more...
      8. Generating a WSDL document
        1. Getting ready
        2. How to do it...
        3. How it works...
      9. Creating SOAP-compliant web services
        1. Getting ready
          1. How to do it...
          2. How it works...
    14. 9. OFBiz Tips and Tricks
      1. Introduction
      2. Fixing Java memory allocation errors
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Reloading OFBiz seed and demo data
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Creating new seed data files
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
      5. Changing the administrative user's password
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
      6. Creating a new administrative user
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      7. Getting the OFBiz version number
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      8. Building an OFBiz instance
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      9. Building a single OFBiz Component
        1. Getting ready
        2. How to do it...
        3. How it works...
      10. Creating a new OFBiz Component or Application
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      11. Creating a FreeMarker transform
        1. How to do it...
        2. How it works...
        3. There's more...
      12. Preparing data using Groovy
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      13. Pop-up new browser windows
        1. How to do it...
        2. How it works...
        3. There's more...
      14. Installing an OFBiz Visual Theme
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      15. Creating an OFBiz Visual Theme
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
    15. A. Entity Engine by Example
      1. Introduction
      2. Putting it all together with a data model example
        1. Sample use case
        2. Entity diagram
        3. New entity definitions
        4. 2-way SQL join view-entity
        5. 3-way SQL join view-entity
        6. View-entity reports
        7. Next steps
      3. Reading data from an OFBiz data source
      4. Working with large result sets (EntityListIterator)
      5. Removing data from the database (Java)
      6. Writing data to the database (Java)
      7. Using the automatic sequence generator
      8. EntityUtil
        1. EntityUtil.getFirst()
        2. EntityUtil.filterByDate()
        3. EntityUtil.orderBy()
        4. EntityUtil.getFieldListFromEntityList()
        5. EntityUtil.getRelated()
        6. EntityUtil.filterByCondition()
      9. EntityOperator reference