Using Drop-Down Boxes

Drop-down boxes are typically used to list multiple values from which users can make one selection. You can use limits that were set in other sections to limit the values available in drop-down boxes.

For example, Activate the Limits Results section of Sample1mod.bqy and double-click Territory on the Limit line. There are seven available Territory values in the database, but only three are selected in the Show Values list (Asia, North America, and South America). This means the Results section displays only products sold in Asia, North America, and South America.

In the Limits Dashboard section, the territories shown in the drop-down box also are limited to these three selected values.

This section shows you how to create a script that allows the user to view the pie chart according by territory as selected from the drop-down box.

The exercises in this section add a script to a drop-down box to display an alert. The exercises introduce two concepts: