# Using a ListBox with an Alarms Table

The example below illustrates how to configure a ListBox to show the contents of an Alarms table:

1. In the Alarm Editor, create three alarms with the following priorities:

   - alarm1: 2
   - alarm2: 3
   - alarm3: 1

2. In a Page, add a ListBox and two Labels.

3. Select the ListBox and apply these values to the following properties:
   - Display Column: Name - The value of this column is displayed in the ListBox for the alarm items (a.k.a the name you provided for each alarm; for the available columns, see the table above)
   - Source: Systems.Alarms.All - The table from which the items are enumerated. In this case, we created three alarms that belong to the System.Alarms list.
   - Value Column: Priority - The value of the column you wish to be displayed in the second label.

4. Select the first label and give the following value as its Text property: Selected alarm's priority is:

5. Select the second label and click the grey dot next to its Text property. In the Expression Builder, provide the following tag: $Pages.Page.ListBox.SelectedValue

   This will bind the value (Priority) of the Value Column property of the element selected in the ListBox and display it as this label's Text property.

6. To check the application, click the Test Mode button. Select the alarms and check their priorities displayed in the label.