Operation Manual

443
USING DREAMWEAVER
Building Spry pages visually
Last updated 3/28/2012
4 In the Set Data Options screen, do the following:
(Optional) Set data set column types by selecting a column, and choosing a column type from the Type pop-up
menu. For example, if a column in the data set contains numbers, select the column and choose number from
the Type pop-up menu. This option is only important if you want your user to be able to sort the data by that
column.
You can select a data set column by clicking its header, by choosing it from the Column Name pop-up menu, or
by navigating to it using the left and right arrows in the upper-left corner of the screen.
(Optional) Specify how you want to sort the data by selecting the column you want to sort by from the Sort
Column pop-up menu. Once you’ve selected the column, you can specify whether to sort it in ascending or
descending order.
(Optional) Select Filter Out Duplicate rows to exclude duplicate rows of data from the data set.
(Optional) Select Disable Data Caching if you always want to have access to the most recent data in the data set.
If you want to autorefresh data, select Autorefresh Data and specify a refresh time in milliseconds.
When you’re finished in the Set Data Options screen, click Done to create the data set right away, or click Next
to go on to the Choose Insert Options screen. If you click Done, the data set becomes available in the Bindings
panel (Window
> Bindings).
5 In the Choose Insert Options screen, do one of the following:
Select a layout for the new data set, and specify the appropriate setup options. For more information, see
Choose a layout for the data set” on page 443.
Select Do Not Insert HTML. If you select this option, Dreamweaver creates the data set, but does not add any
HTML to the page. The data set becomes available from the Bindings panel (Window
> Bindings), and you can
manually drag pieces of data from the data set to the page.
6 Click Done.
Dreamweaver creates the data set and, if you selected a layout option, displays the layout and data placeholders on
your page. If you look in Code view, you’ll see that Dreamweaver has added references in the header to the xpath.js
file and the SpryData.js file. These files are important Spry assets that work in conjunction with the page. Be sure
not to remove this code from your page or the data set will not function. When you upload your page to a server,
you’ll also need to upload these files as dependent files.
Choose a layout for the data set
The Choose Insert Options screen lets you select different display options for how you want to display values from the
data set on the page. You can display data using a dynamic Spry Table, a master/detail layout, a stacked containers
(single column) layout, or a stacked containers with spotlight area (two-column) layout. A thumbnail depiction of
what each layout looks like appears in the Choose Insert Options screen.
Dynamic Table layout
Select this option if you want to display your data in a dynamic Spry Table. Spry Tables allow for dynamic column
sorting and other interactive behaviors.
Once you’ve selected this option, click the Set Up button to open the Insert Table dialog box and follow these steps:
1 In the Columns panel, adjust the columns for your table by doing the following:
Select a column name and click the minus (-) sign to delete the column from the table. Click the plus (+) sign
and select a column name to add new columns to the table.