Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See the Studio Guide within Eclipse Help Contents for more information on Nexaweb Studio.


Creating a Data Source

...

Click OK. The data source you added appears in the Outline view under Data > Data Sources.

Creating a Binding

You create bindings to connect your Nexaweb application with various data sources.

...

  1. To open the Data Bind Component Attribute wizard:

    Select Outline view
    - Right click on nxml component tag for which you want to bind a component attribute.
    - Select Data binding > Bind component attribute.
    The Bind Component Attribute wizard appears.
    Select Package Explorer view
    - Drag Java method from package to any nxml component.
    The Bind Component Attribute wizard appears.
    Select Outline view
    - Drag data source component to any nxml component.
    The Bind Component Attribute wizard appears.
    Select Outline view
    - Drag binding to any nxml component.
    The Bind Component Attribute wizard appears.

  2. Complete the Bind Component Attribute wizard as follows:

    Attribute name: Select the attribute to bind from the dropdown list.

    Attribute value: Specify the XPath expresion to use to bind this attribute.

  3. Click OK.

    In Outline View, a new attribute binding appears next to the nxml component tag with which you associated this binding.


Creating an Iterator

Use iterators to allow data sources that have multiple rows of data to display them in an iterative fashion.

...

  1. To open the Create Iterator wizard:

    Select Outline view
    - Right click on a nxml component tag for which you want to use an interator.
    - Select Data binding > Wrap with iterator.
    The Create Iterator wizard appears.

  2. Complete the Create Iterator wizard as follows:

    Name: Specify a system wide unique value to identify this iterator.

    Data Source: Select the project data source to iterate from the drop down list.

    Select statement: Specify the XPath select statement to obtain the data from the datasource.

    Binding type: Select a binding type for this iterator from the drop down list: one_time (gets data once and does not refresh) or one way (refreshes data at intervals when it changes at the source.)

  3. Click OK.

    In Outline View, the iterator appears beneath Data > Iterators and above the nxml component tag with which it associates.

Creating a Data Bound Form

A Date Bound Form allows you to define the fields to appear on the form as you select the data from this source to bind to this form.

...