If you want to make any modifications to an RDD outside of what
the builder provides, you have to create a new RDD file.
Once you have created the file, modify the builder to use this
file.
In general, when you want to use a specific input control for Data
Entry, you'll want to first create the builder as usual and then copy the XML
information for that builder.
The first step is to add tags to the RDD for the element you want
to modify.
In this example, we want to add a select to the Team element. So
you find the Team element in the RDD file and add the new tags there.
How do you know which tags to add? To start with you use a
tag to specify the builder you want to use. For example:
<DataEntryControl>com.bowstreet.builders.webapp.SelectBuilder</Dat
aEntryControl>
How do you know what the value is for the control you want to use?
You can get this from the Model XML. Add the builder you want to use and enter
all the inputs. Then examine the Model XML. To see the Model XML, click the tab
at the bottom of the work pane. Look for the BuilderDefID.
Now inside of the
<DataEntryControl>
add a
<DataEntryInputs>
element.
Then go back to the Model XML and copy the entire
section. Paste this inside of the
element.
So the result is something like this:
<DataDefinition
name="Team"><Label>Team</Label>
<Required>true</Required>
<DataType>string</DataType>
<DataEntryControl>com.bowstreet.builders.webapp.SelectBuilder<
;/DataEntryControl>
<DataEntryInputs>
<Inputs>
<Input name =
"BuilderCallEnabled">true</Input>
<Input name = "Multiple">false</Input>
<Input name =
"RetainOptions">true</Input>
<Input
name = "RemoveDuplicateOptions">false</Input>
<Input name =
"LookupTable">None</Input>
<Input name
= "HTMLAttributes">
<HTMLAttributes>
<size></size>
<class></class>
</HTMLAttributes>
</Input>
<Input name = "PageLocation">
<SimplePageLocation>
<Page>page1</Page>
<NameSearch>Team</NameSearch>
</SimplePageLocation>
</Input>
<Input name = "ValueKey">value</Input>
<Input name = "TextKey">name</Input>
<Input name =
"Options">${Variables/teams}</Input>
<Input name =
"SelectedValues">03</Input>
</Inputs>
</DataEntryInputs>
</DataDefinition>
Now you can disable or delete the select builder you created since the RDD
has all the information for that builder. (I left the disabled select builder
in the model as a reference.)
Note that since name/value pairs are used in the select data,
the SelectedValues builder input has to match the value element which is either
01,02 or 03 and not Red, Blue or Yellow.
<Input name="SelectedValues">
03</Input>
An example model and RDD file are attached.