How To: Specify a default value for a Drop-Down control, and Filter Data by Another Control

Use the steps and scenarios in this topic to 1) set a default value for a drop-down control, and then 2) use another drop-down control to filter the first one with the default value.

For these scenarios, you create the SmartObjects (City and Country) and set a default value for the City. The second scenario shows you how to use the two SmartObjects with two cascading drop-down list controls.

Example of configured property

Runtime example

Scenario

This scenario uses two SmartObjects called Country and City. Each country (example USA) has two cities (example Austin, New York) and one of the cities is set as the default city (New York). You define an association, assign a relationship between the two SmartObjects and then generate views. Use the Editable list to add data to the SmartObjects.