5.8 Managing Data Grids

Data grids are sets of data displayed in rows and columns. Data grids store data in a similar way to how spreadsheets store data. Once created, the structure can be modified as needed over time.

5.8.1 About Data Grids

You can define the structure of a data grid using column names, data sources, and basic validations, or you can create a data grid by pasting spreadsheet data. Once created, the structure can be modified as needed.

You can alter the layout of report data by selecting columns or by applying filters, highlighting, and sorting. You can also define breaks, aggregations, group bys, computations, and different charts.

Additionally, you can create multiple variations of a data grid and save them as named reports, for either public or private viewing. You can also use the data from a data grid and include it as a chart or report within any page.

5.8.2 Creating a Data Grid

You can create a data grid by either defining the structure (that is, the column names, data sources, and basic validations), or by pasting in spreadsheet data.

In addition to the defined columns, the following standard columns are always included within each data grid: owner, created by, created on, updated by, updated on, row order, and annotation (files, notes, links, and tags).

5.8.2.1 Creating a Data Grid from Scratch

Create a data grid from scratch by clicking New Data Grid in the Create menu and selecting From Scratch.

When you create a data grid from scratch you must define the column names, datatypes, and basic values. Once you have created the basic structure, you can then populate it with data.

To create a data grid from scratch:

  1. Run the Websheet application.
  2. From the Create menu, select New Data Grid.

    Tip:

    You can also select New Data Grid on the Control Panel.

  3. When prompted for the section type, select From Scratch and click Next.
  4. Specify the following:
    1. Name - Enter a data grid name.
    2. Alias - Enter a data grid alias. Use this alias to link to this data grid within other page sections. A data grid alias must be unique within an application.
    3. Define the data grid structure by specifying the column name and data type. To change the order, click the Up and Down arrow under Move.

      Note:

      To add more columns, click Add Column.
    4. Click Create Data Grid.
      The data grid appears.
  5. To add data, click Add Row.

5.8.2.2 Creating a Data Grid by Copying and Pasting Spreadsheet Data

Create a data grid by copying and pasting spreadsheet data by clicking New Data Grid in the Create menu and selecting Copy and Paste.

To create a data grid by copying and pasting spreadsheet data:

  1. Run the Websheet application.
  2. From the Create menu, select New Data Grid.

    Tip:

    You can also select New Data Grid from the Create menu or the Control Panel.

  3. When prompted for the section type, select Copy and Paste and click Next.
  4. Specify the following:
    1. Name - Enter a data grid name.
    2. Alias - Enter a data grid alias. You can use this alias to link to this data grid within page sections. A data grid alias must be unique within an application.
    3. First Row Contains Column Headings - Select this option if applicable.
    4. Paste Spreadsheet Data - Copy and paste the data you want to load from a spreadsheet program.
    5. Click Upload.
A data grid appears.

5.8.3 Copying a Data Grid

Copy a data grid by clicking Copy in the Manage menu.

To copy a data grid:

  1. Run the Websheet application.
  2. From the Data Grid menu, select an existing data grid.

    The data grid appears.

  3. From the Manage menu, select Copy.
  4. Enter a new data grid name and click Copy.

5.8.4 Viewing and Editing a Data Grid

Once you create a data grid, you can view and edit it on the Data page.

Tip:

Data grids display as an interactive report.

5.8.4.1 Accessing the Data Page

Access the Data page by selecting View All in the Data Grid menu.

To access the Data page:

  1. Run the Websheet application.
  2. From the Data Grid menu, select View All.

    An interactive report appears displaying all data grids. The report also appears in the Report view.

    Tip:

    If icons display, then click the View Report icon.

    By default, the Report view displays the data grid Name, Alias, Updated, and Updated By columns. The Embed Tag column displays the syntax used to include a link to the report or data grid from within a section of a page.

  3. Select a data grid.

5.8.4.2 Toggling Check Boxes

Toggle whether check boxes display when viewing a data grid by selecting Toggle Checkboxes in the Manage menu.

Use the checkboxes for custom selections.

To display checkboxes adjacent to each row:

When enabled, check boxes display to the left of each row.

5.8.4.3 Editing Data Grid Data

Edit the data in a data grid by clicking a valid cell or add a new row by clicking the Add Row button.

To edit data grid data:

  1. Run the Websheet application.
  2. From the Data Grid menu, select a data grid.
    The data grid appears.
  3. Click a valid cell.
    The cell expands into an editable text field.
  4. When finished, click outside of the cell or press the Tab key to proceed to the next cell in the column.
    Changes are saved automatically.

To add another row:

  1. Click the Add Row button.
    A form appears.
  2. Edit the fields provided. Each field is a column within the new row.
  3. Click either Save or Save and Add Another.

Tip:

You can also edit an entire row by clicking the Edit Row button (pencil) adjacent to the row.

5.8.4.4 Editing Data Grid Columns Manually

Manually edit columns in a data grid by clicking Columns in the Manage menu.

To manually edit data grid columns:

  1. Run the Websheet application.
  2. From the Data Grid menu, select a data grid.

    The data grid appears.

  3. From the Manage menu, select Columns.

    The following submenu displays:

    Add
    Adds a new column. Enables you to define all column properties such as the column name, group, type, value required, display as, list of values, default type, and so on.
    Column Properties
    Editable properties include sequence, group, required value, display as, label, format, heading alignment, column alignment, default text, help text, and so on.
    List of Values
    Enables you to restrict the values a user can enter. You associate a list of values with a column on Column Properties.
    Column Groups
    Create a group and add columns to the group. Enables you to define the group name and provide a description. You can select the columns for the new column group in the Column region by using the arrow keys.
    Validation
    Enables you to define a column validation, sequence, validation expression, and error message.
    Delete Columns
    Select columns to delete.
  4. Select a submenu option and follow the on-screen instructions.

5.8.4.5 Editing Data Grid Rows Manually

Manually edit rows in a data grid by clicking Rows in the Manage menu.

To manually edit data grid rows:

  1. Run the Websheet application.
  2. From the Data Grid menu, select a data grid.

    The data grid appears.

  3. From the Manage Menu, select Rows.

    The following submenu displays:

    Add Row
    Adds a new row. Enables you to define the project, task, start date, end date, and so on.

    Tip:

    You can also click the Add Row button in the data grid to add a new row.

    Set Column Values
    Set a predefined value for a column for all rows, selected rows, or empty rows.
    Replace
    Search and replace row values for all rows or selected rows.
    Fill
    Fill NULL column values with a column value from the above cell. Select a column from which you want to fill the NULL column value.
    Delete Rows
    Select to delete all rows, selected rows, or rows with empty columns.
  4. Select a submenu option and follow the on-screen instructions.

5.8.4.6 Editing a Single Data Grid Row

Edit a single row in a data grid by clicking its Edit Row icon (pencil).

To manually edit a single data grid row:

  1. Run the Websheet application.
  2. From the Data Grid menu, select a data grid.

    The data grid appears.

  3. Locate the row to be edited and click the Edit Row icon.
    The Add/Edit Row page appears.
  4. Edit the appropriate rows and click Apply Changes.

Tip:

You can use the Actions region on the Add/Edit Row page to add a new row, add a file, add annotations, add links, add tags, view a history of changes, add a column, edit column properties and group, delete columns, and create a list of values or a validation.

5.8.4.7 Adding Annotations to a Single Data Grid Row

Add annotations to a row in a data grid by clicking its Edit Row icon (pencil).

To add annotations (that is, files, notes, links, and tags) to a single data grid row:

  1. Run the Websheet application.
  2. From the Data Grid menu, select a data grid.

    The data grid appears.

  3. Locate the row to be edited and click the Edit Row icon.
  4. From the Actions region, select one of the following:
    • Add File
    • Add Note
    • Add Link
    • Add Tags
  5. Follow the on-screen instructions.

5.8.4.8 Displaying Annotation Columns in a Data Grid Report

Choose which columns to display in a data grid by clicking the Actions menu and selecting Select Columns.

To display annotation columns (such as Files, Notes, Links, and Tags) in a data grid report:

  1. View the data grid report.
  2. Click the Actions menu and then Select Columns.
  3. In the Select Columns region, move the columns (for example, Files, Notes, Links, and Tags) to Display in Report.
  4. Click Apply.

To ensure that all users can see the columns, developers can save the revised layout as the default report.

To save a new default report:

  1. Click the Actions menu and select Save Report.
    The Save Report Region appears.
  2. In Save Report:
    1. Save - Select As Default Report Settings.
    2. Name - Enter a name for the report.
    3. Description - Enter an optional description.
    4. Click Apply.

5.8.4.9 Displaying Pseudo Columns in a Data Grid Report

Choose whether to display pseudo columns in a data grid report by clicking the Actions menu and selecting Select Columns, then save the report.

Data grids include the following pseudo columns:

Owner
The username who created the row.
Row Key
The user-friendly alphanumeric unique key to identify a row.
Row Order
The unique number to identify a row.
Created By
The username who created the row.
Created On
The date when the row was created.

To display pseudo columns in a data grid report:

  1. Include the pseudo columns in the data grid report:
    1. View the data grid report.
    2. Click the Actions menu and then Select Columns.
    3. In the Select Columns region, move the pseudo columns to Display in Report.
    4. Click Apply.
  2. Save a new default report:
    1. Click the Actions menu and select Save Report.
      The Save Report Region appears.
    2. In Save Report:
      1. Save - Select As Default Report Settings.

      2. Name - Enter a name for the report.

      3. Description - Enter an optional description.

      4. Click Apply.

5.8.4.10 Editing Data Grid Properties

Change the name, alias, and description of a data grid on the Data Grid Properties page.

To edit data grid properties:

  1. Run the Websheet application.
  2. From the Data Grid menu, select a data grid.

    The data grid appears.

  3. From the Manage menu, click Properties.

    The Data Grid Properties page appears.

  4. Edit the fields provided and click Apply.

5.8.4.11 Creating a Bookmark Link to a Data Grid

Create a bookmark link to a data grid by adding the appropriate syntax to the URL of its parent Websheet or retrieving the URL manually.

To bookmark directly to a data grid or a row:

  1. Use the following syntax:
    ws?p=100000:DG_<data grid alias> 
    ws?p=100000:DG_<data grid alias>::ROW_ID:<data grid row ID>
    

    The data grid row ID is an ID column value of the APEX$_WS_ROWS table.

To get a link to a specific data grid row:

  1. Run the data grid.
  2. Click the Edit Row icon.
  3. Note the URL in the browser.

5.8.5 Viewing the Data Grid Change History Log

View the change history log of a data grid by selecting History in the Manage menu.

The View Change History log displays a report of data grid changes. This report lists the row, column name, old value, new value, user who authored the change, and how long ago the change occurred.

To view a history of data grid changes:

  1. Run the Websheet application.
  2. From the Data Grid menu, select a data grid.

    The data grid appears.

  3. From the Manage menu, select History.

5.8.6 Deleting a Data Grid

Delete a data grid by selecting Delete Data Grid in its Manage menu.

To delete a data grid:

  1. Run the Websheet application.
  2. From the Data Grid menu, select a data grid.
    The data grid appears.
  3. From the Manage menu, select Delete Data Grid.
  4. Confirm your selection and click Delete.