Book Image

Oracle APEX Cookbook : Second Edition

Book Image

Oracle APEX Cookbook : Second Edition

Overview of this book

Table of Contents (21 chapters)
Oracle APEX Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Implementing a datagrid


Datagrids are the strong points of websheets. Websheets have been called 'Excel-killers'. If that is true, than datagrids are the weapons.

Getting ready

Make sure that there is a page available to implement the datagrid on. We can take the Sales Overview page from the previous recipe and elaborate on that.

If you didn't create that page yet, do so before starting this recipe.

How to do it...

Let's say that the company in this example sells only one kind of product. They have no need for an elaborate database, so they would like a simple grid to monitor all sales.

  1. When on the Sales Overview page, click on the button on the right-hand side called New Datagrid.

  2. On the first page of the wizard, select the option From Scratch.

  3. Next, enter the title and columns for the datagrid as shown in the following screenshot:

  4. Click on Create.

What we see now is an empty datagrid. To add data to the grid, click on the Add Row button.

Data can now be entered into the datagrid, row-by-row.

When...