General Interface is an open source project hosted by the Dojo Foundation

Creating the CDF Mapping Container

The CDF Mapping Container is a new control in the Form Elements component library.

To create a new CDF mapping container:

  1. Create a new project.
  2. Expand the Form Elements folder in the Components Library.
  3. Drag the CDF Mapping Container icon to the Component Hierarchy to add the new element to the DOM:
    Click here to expand screenshot...


  4. Add two text boxes to the mapping container---drag two text boxes from the Form Element component library to the cdf mapping container, and name them T1 and T2:
    Click here to expand screenshot...


  5. Look at the Properties Editor for the cdf element---the XML String property contains this Value:
    <data jsxid="jsxroot">
    <record jsxid="1" first="john" last="public" middle="q"/>
    </data>

    This is the default test document that is provided with the control. Like all other controls that implement the Cacheable interface, this control will parse this string of XML and set it in the local cache, using a unique ID (or one assigned by the developer if applicable).

  6. Open the Local Data Cache, and you'll see that the CDF mapping container has put the _jsx_1_4_XML file there:
    Click here to expand screenshot...


  7. Double-click the XML file name to open it in the work area, then click the Formatted Source XML button to see the formatted XML:
    Click here to expand screenshot...


Contents

Searching General Interface Docs

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.