Using DataScope and Provider

To set attributes for a dataScope component:

  1. In the Design Structure Window of the desired file, select the dataScope node.
  2. In the Property Inspector, set the following attributes for the dataScope component:

Note: To use data binding, see Data Binding a Component Attribute.

Example (UIX XML)


...
<dataScope currentData="${uix.data.dat1.formData}">
  <contents>
    <form name="form1">
      <contents>
        <header text="${uix.current.headerText}">
          <contents>
            <radioGroup selectedValue="${uix.current.color}"
                        name="color" 
                        text="${uix.current.name}"
                        value="${uix.current.value}" 
                        childData="${uix.data.dat1.rad}"/>
            <html:br/>
            <messageTextInput name="stone" prompt="Enter Stone"
                              text="${uix.current.stone}" />
            <html:br/>
            <submitButton text="Submit" />
          </contents>
        </header>
      </contents>
    </form>
  </contents>
  <provider>
    <data name="dat1">
      <inline>
        <formData headerText="Enter Form Data" color="00FF00"
                  stone="Jade" />
        <rad name="Red" value="FF0000" />
        <rad name="Green" value="00FF00" />
        <rad name="Blue" value="0000FF" />
      </inline>
    </data>
  </provider>
</dataScope>
...    

About DataScope and Provider

Working with Simple and Miscellaneous Components

 

Copyright © 1997, 2004, Oracle. All rights reserved.