Book Image

Apache OFBiz Development: The Beginner's Tutorial

By : Jonathon Wong, Rupert Howell
Book Image

Apache OFBiz Development: The Beginner's Tutorial

By: Jonathon Wong, Rupert Howell

Overview of this book

<p>Apache OFBiz (Open For Business) is versatile open-source enterprise automation software that powers many small and medium sized businesses around the world. It incorporates a number of mature applications such as ERP, e-Commerce, MRP and CRM.<br /><br />Built around an MVC framework with common logic, data model and process components, Ofbiz allows existing and bespoke applications to be added through a component-based architecture. Ofbiz includes a mature suite of enterprise applications that integrate and automate a company's many business needs.<br />&nbsp;<br />This easy-to-read book will quickly enable newcomers to get hands-on with OFBiz. It provides an overview of the main modules and employs illustrated examples that show readers how to build exemplary business applications rapidly. Covering the main aspects of the Model-View-Controller framework, the reader will gain a working knowledge of Widgets, Entities, and The Service Engine. The authors also describe how to tweak OFBiz, and offer valuable performance and development tips. By navigating through the flow of OFBiz and providing insight into the thousands of examples that already exist in the core code they have made this book a must-have for anyone looking to get started with OFBiz.</p>
Table of Contents (20 chapters)
Apache OFBiz Development
Credits
About the Authors
About the Reviewers
Preface
Simple Method User's Guide

Dynamic View Entities


It may sometimes be the case that the complexity of the query we are using to retrieve data from the database is dependent on a set of parameters. Joins can be expensive in terms of database performance, particularly when we are joining two entities that can potentially hold millions of records. We may wish to use the same XHTML form and the same piece of code to perform a lookup, yet alter which entities are included in the lookup.

This is best explained by example. Head to the Order Manager Application by firing an OFBiz http request to webapp ordermgr and log in using the standard ofbiz user login. Select Find Orders.

We can search for orders using a number of different parameters. For now, let's concentrate on just three fields: The Order Id, the ProductId, and the Status Id. Enter our pre-placed orderId of WS10000 into the Order Id field, select Completed as the Status Id and tick the show all records box. We can see that our order has been found.

Now empty the...