Creating a Data Object for External Data

External data exists in local desktop databases or in ODBC data sources. Open Data Base Connectivity (ODBC) drivers draw data from Structured Query Language (SQL) data sources, such as Oracle and Sybase data files. They also support Microsoft Excel, Microsoft Access, delimited text files, and others.

NetObjects Fusion automatically imports all the fields available in the external database file. If a simple text field contains a valid path to an image file, NetObjects Fusion asks if you want to make the field an image field. Before you add an external data object, make sure you have all the necessary fields. You cannot add fields once you create the external data object.

Note:NetObjects Fusion Connector for Macromedia ColdFusion and NetObjects Fusion Connector for Microsoft Active Server Pages support dynamic data publishing. Visit Online view for information about these connectors.

To create a data object from a SQL data source:

  1. Display the Select Data Source dialog:

  2. In Page view, select the New External Data Source tool from the Advanced Tools toolbar, and draw a rectangle on the page.

  3. If you are in Assets view, click the Data Objects tab, and then click the New Asset button on the control bar.

The Data Object dialog appears.

  1. Select External and then click the Source button.

The Select Data Source dialog appears.

  1. You can select an existing data source or create a new data source.

To create a new data source, click New in the Select Data Source dialog and follow the steps in the Windows Create New Data Source wizard.

To select an existing ODBC source on your system, you can use the File Data Source tab or the Machine Data Source tab:

Depending on the data source type you choose, the Select Workbook or Select Database dialog appears.

  1. Follow these steps:

  2. Select a file in the dialog and click OK.

  3. If the source refers to a multiple-file database or a spreadsheet with multiple tabs, the Select dialog appears. Select the file or tab and click OK.

NetObjects Fusion creates the data object, gives it the name of the selected file or tab, and imports its fields as simple text fields.

If a simple text field contains a valid path to an image file, you can choose to make it a text field or an image field.

The data object is now an asset of your site, and you can continue as follows: