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.
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.
Users can alter the layout of report data by selecting columns or by applying filters, highlighting, and sorting. Users can also define breaks, aggregations, group bys, computations, and different charts. Additionally, users 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.
See Also:
"About Chart Sections"You can create a data grid by either defining the structure (that is, the column names, data types, 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).
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:
Run the Websheet application. See "Running a Websheet".
From the Data Grid menu, select New Data Grid.
Tip:
You can also select New Data Grid on the Control Panel.When prompted for the section type, select From Scratch and click Next.
Specify the following:
Name - Enter a data grid name.
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.
Define the data grid structure by specifying the column name and data type. To change the order, click the Up and Down arrows under Move.
To add more columns, click Add Column.
Click Create Data Grid.
The data grid appears.
To add data, click Add Row. See "Editing Data Grid Data".
To create a data grid by copying and pasting spreadsheet data:
Run the Websheet application. See "Running a Websheet".
From the Data Grid menu, select New Data Grid.
Tip:
You can also select New Data Grid from the Create menu or the Control Panel.When prompted for the section type, select Copy and Paste and click Next.
Specify the following:
Name - Enter a data grid name.
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.
First Row Contains Column Headings - Select this option if applicable.
Paste Spreadsheet Data - Copy and paste the data you want to load from a spreadsheet program.
Click Upload.
A data grid appears.
To copy a data grid:
Run the Websheet application. See "Running a Websheet".
From the Data Grid menu, select an existing data grid.
The data grid appears.
Click Manage and select Copy.
Enter a new data grid name and click Copy.
Once you create a data grid, you can view and edit it on the Data page.
Tip:
Data grids display as an interactive report. To learn more about interactive reports and using the Actions menu, see "Customizing Interactive Reports" and "About the Actions Menu".To access the Data page:
Run the Websheet application. See "Running a Websheet".
From the Data Grid menu, select View All.
An interactive report appears displaying all data grids.
Tip:
If icons display, click the View Report icon.The Report view appears.
By default, Report view displays the data grid Name, Embed Tag, Alias, Status, 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.
Select a data grid.
The data grid appears.
When viewing a data grid, you can enable and disable check boxes. From the Manage menu, select Toggle Check Boxes. Selecting this option, displays check boxes to the left of each row.
To edit data grid data:
Run the Websheet application. See "Running a Websheet".
From the Data Grid menu, select a data grid.
The data grid appears.
To add another row:
Click the Add Row button.
A form appears.
Edit the fields provided and click either Save or Save and Add Another.
To manually edit data grid columns:
Run the Websheet application. See "Running a Websheet".
From the Data Grid menu, select a data grid.
The data grid appears.
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, type, whether a value is required, list of values, default type, and default text.
Column Properties - Editable properties include sequence, group, required value, label, format, heading, width and height, column type, default text, list of values, and help text.
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. Add / Edit row page displays groups as a subsection under the Data region and lists columns within the group. By using groups, you can control the Add / Edit row page display.
Select a submenu option and follow the on-screen instructions.
You can manually edit the rows of a data grid by selecting Rows and on the Manage menu.
To manually edit data grid rows:
Run the Websheet application. See "Running a Websheet".
From the Data Grid menu, select a data grid.
The data grid appears.
From the Manage Menu, select Rows.
The following options display:
Select a submenu option and follow the on-screen instructions.
To manually edit a single data grid row:
Run the Websheet application. See "Running a Websheet".
From the Data Grid menu, select a data grid.
The data grid appears.
Locate the row to be edited and click the Edit Row icon.
The Add/Edit Row page appears.
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 annotations, view a history of changes, edit column properties and group, delete columns, and create a list of values or a validation.To add annotations (that is, files, notes, links, and tags) to a single data grid row:
Run the Websheet application. See "Running a Websheet".
From the Data Grid menu, select a data grid.
The data grid appears.
Locate the row to be edited and click the Edit Row icon.
The Add/Edit Row page appears.
On the Actions region, select one of the following:
Add File
Add Note
Add Link
Add Tags
Follow the on-screen instructions.
See Also:
"Managing Annotations"To display annotation columns in a data grid report:
Add annotations to the data grid report as described in "Adding Annotations to a Single Data Grid Row".
To include the columns in the data grid report:
View the data grid report.
Click the Actions menu and then Select Columns.
In the Select Columns region, move the columns (for example, Files, Notes, Links, and Tags) to Display in Report.
Click Apply.
To ensure all users can see the columns, developers can save the revised layout as the default report:
Click the Actions menu and select Save Report.
The Save Report Region appears.
In Save Report:
Save - Select As Default Report Settings.
Name - Enter a name for the report.
Description - Enter an optional description.
Click Apply.
You can change the name, alias, and description of a data grid on the Data Grid Properties page.
To edit a data grid:
Run the Websheet application. See "Running a Websheet".
From the Data Grid menu, select a data grid.
The data grid appears.
From the Manage menu, click Properties.
The Data Grid Properties page appears.
Edit the fields provided and click Apply.
To bookmark directly to a data grid or a row, use the following syntax:
ws?p=100000:DG_<data grid alias> ws?p=100000:DG_<data grid alias>:<session ID>: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:
Run the data grid.
Click the Edit Row icon.
Note the URL in the browser.
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:
Run the Websheet application. See "Running a Websheet".
From the Data Grid menu, select a data grid.
The data grid appears.
From the Manage menu, select History.
To copy a data grid:
Run the Websheet application. See "Running a Websheet".
From the Data Grid menu, select a data grid.
The data grid appears.
From the Manage menu, select Delete Data Grid.
Confirm your selection and click Delete.