On a config dialog for a device, I have 2 lists. I need to generate the content for the 2nd list after a selection changes in the first list. For example, if I have a list of states and a list of cities, I want to refresh the cities anytime the state changes. The dynamicReload parameter only triggers when another callback is used, so I can make a button that calls a stub method, but it isn't great from the user's perspective and can lead to invalid state / city combinations.
- Code: Select all
<Field type="menu" id="state">
<Label>State</Label>
<List>
<Option value="az">Arizona</Option>
<Option value="co">Colorado</Option>
<Option value="ca">California</Option>
</List>
</Field>
<Field type="menu" id="city">
<Label>City</Label>
<List class="self" method="listCurrentCities" dynamicReload="true" />
</Field>
Any suggestions?