Setting up Recordsets

Databases can contain vast amounts of data. Oftentimes, there will be more data in the database than you will want to present to your users. Perhaps there are too many rows to show efficiently, or there is sensitive data—such as credit card information—that you would not want to show to all users who view a page. NetObjects Fusion 12 provides Recordsets to filter the data that is presented to users.

To set a recordset:

  1. In Page view, click on the Record sets button from the DataSources panel.

The DataSources panel displays the Recorsets section.

  1. Click the New Dataset/Variable.. button, and select the Recorset (Query) option.

The Choose a connector dialog appears.

  1. From the Connector drop-down list, select the connector to which you want to create a recordset.

  2. Click the OK button.

The Recordset dialog appears.

On the General tab of the Recorset dialog, there are three main sections:

The Where clause is not required; however, using a Where clause is recommended. If you have, for example, 10,000 rows of data, it is likely you won't want to return them all. You can use the Where clause to filter your results to a manageable number.

 

  1. In the Select list field, click the name of the table you are working with and then click a field that you want to display.

  2. Click the plus sign to add it to the right-hand pane.

  3. In the Where section:

    1. Select a data field from the list of fields in this table. This is the field used to restrict the output.

    2. Choose an operator. An operator is a phrase like "is greater than", or "is equal to".

    3. Choose a value from the drop-down list or type in a custom value. This value can be a field from another recordset, or a variable. If another recordset is used, this has to be used in a Data Source context.

    4. Click the plus sign to add this filter to the right-hand Where pane.

  1. Click OK to close the Recordset editor.

The end result is the creation of a Recordset that describes the data you want to see.