Adding Data Fields to a Data Source Context

From Documentation
Revision as of 22:11, 1 May 2014 by Adam (Talk | contribs) (Adding Data Fields to a Data Source Context)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Adding Data Fields to a Data Source Context

After you have created a Data Source Context, you may add data fields using the Text Tool, and the options from the Data Sources toolbar.

  1. In the Layout Region, add a text box in which type: "Name:" or what label you want.
  2. Point the mouse after the Name label.
  3. From the Data Source toolbar, click the Insert field button.

The Data Sources panel appears.

  1. Select which data to query.
  2. The first entry will be automatically displayed in Page Design.
  3. Within the first Layout Region, add a new Layout Region.
  4. Select the Layout Region and enable Data Source context option in Layout Region Properties panel.
  5. Click the DS Config button to establish a recordset for the DataSource context.

Disable the Pagination option.

  1. In the second Layout Region, add a new text box and type Jobs.
  2. Point the mouse after the Jobs label.
  3. From the Data Source toolbar, click the Insert field button.

The Data Sources panel appears.

  1. Select which data to query.

The first entry will be automatically displayed in Page Design.

  1. Publish the site to see or navigate all the entries.
  2. You should have as many names as there are in the database. Under each name, you should have as many jobs as there are in the database, under that particular Name.

To insert a field label that will retrieve its data from a database:

  1. In Page view, select the Insert Field Label object from the Form toolbar.
  2. Click in the form region to indicate the Label's location.
  3. From the Data Sources toolbar, click the Insert Field button.

Note: The insert Field is enabled if there is a Connector already added. The DataSources panel appears.

  1. Select the recordset you want to work with.
  2. Select the data field you want to be displayed.
  3. Click the OK button.