Home| Printable Version
On the right hand panel, the three top level tabs allow you to select different types of data sources. Clicking on either the Template or the Existing Page tab will bring up a Repository Viewer window, which can be used to select the appropriate file. When the Data Source tab is selected, you can choose from W3C Schema, Service Definition (WSDL) and Database. You may also have customised additional options depending on your particular installation. For example, you may see additional application environments listed that can be used to obtain schema information for creating pages. Selecting a W3C Schema or Service Definition will enable you to choose a file using the Repository Viewer. When you select the Database option you can create a new database connection or select an existing connection to navigate database schema information. In all cases, when you have navigated and selected an appropriate item, a tree representation of the information will be displayed. You can drag and drop elements from this tree to create your page structure.
When dragging fields from a data source, you also have access to the following merge functions:
Merge Individual Control - If you drag an individual field from a data source, you have the option to merge this with an existing field on the page. This merge will update the name of the field to match the data source element, and will also adjust the data bindings for the field so that its value will link to the data source. This will not affect the type of the control, or any of its visual characteristics. Merge Repeating Content - You can drag a repeating element from a data source (identified by an 'R:' prefix) onto an existing repeat control representing a table structure to merge this information. This will update the name of this repeat, and its contained group, and add all the fields within the repeat in the data source along side the table contents on your page. The bindings will also be updated to match the data source. Merge Repeat to a 'select' type field - You can also merge a repeat element from a data source onto an individual control that provides a set of options to select from (eg select, radio, multiple checkbox). In this case, the target field will be updated to display a dynamic set of options as retrieved from the data source. You will be asked to select which particular entry from the data source should be used as the display value shown to the user, and which provides the data value to use in the XML messages.
Manipulating the Page Structure Automatic Data Binding