Hi everyone,
I'm trying to capture an array of information. I would like my form to look like the picture included but the resulting DCR to take the following format:
<options>
<option>
<name>...</name>
<price>...</price>
<nmso>...</nmso>
<description>...</description>
</option>
<option>
<name>...</name>
<price>...</price>
<nmso>...</nmso>
<description>...</description>
</option>
...
</options>
So far I've beem unsuccessful at finding the right XML Mapping. I've generated formats such as:
<options>
<option>
...
</option>
</options>
<options>
<option>
...
</option>
</options>
...
- and -
<option>
...
</option>
<option>
...
</option>
...
Is this possible or do I need to have an "option" container to encapsulate the name and other information? If possible, what is required from the XML mapping (pathId and location attributes) for this to work? Ultimately I want to avoid having another container on the form.
Here is example of my code:
<container name="options" location="options/option" max="unbounded">
<label>Options</label>
<item name="option_name" pathid="name">
<label>Name</label>
<description>The name of the optional device</description>
<text size="65" required="t" maxlength="32" />
</item>
<item name="option_price" pathid="price" rowcontinue="f">
<label>Price</label>
<description>Enter the Price</description>
<text size="65" required="f" maxlength="16" />
</item>
<item name="option_nmso" pathid="nmso" rowcontinue="f">
<label>NMSO</label>
<description>Enter the NMSO number</description>
<text size="65" required="f" maxlength="32" />
</item>
<item name="option_description" pathid="description">
<label>Description</label>
<textarea wrap="virtual" required="f" cols="65" rows="4" />
<description>The description of the optional device</description>
</item>
</container>