Configure Editable Drop-down

The Editable Drop-down server behavior allows the web developers to include an editable drop-down in their site pages. Before applying it, there must be a recordset created in the Dreamweaver page, and also a list/menu item added.

This server behavior is accessible from the Application panel, Server Behaviors -> + -> MX Kollection -> Form Controls -> Editable Drop-down.

The user interface has only one tab. Directions about its correct configuration are given below.

 

To set the dialog box options, follow the next steps:

  1. In the Apply to field drop-down menu select the text field on which to apply the server behavior.
  2. In the Recordset drop-down menu select one of the recordsets defined in your page. The selected recordset should contain the data that you want displayed when using the editable drop-down.
  3. In the Get labels from drop-down menu select the table field that stores the names you want to be shown in the menu.
  4. In the Get values from drop-down menu select the table field that stores the value for the menu elements.
  5. In the Number of records to display drop-down menu either select the number of records to be displayed or enter the number that you prefer.
  6. The Single click select checkbox enables the selecting of an element and then the closing of the menu with only one click.
  7. If you check the Default option checkbox, then in the editable drop-down menu in browser, the "Please Select" text will be displayed at first. If you leave it unchecked, the default option will be blank.
  8. In the Restrict to list elements drop-down menu select "No" if you want to allow adding new elements, or "Yes" otherwise.
  9. In the Default value text box enter a starting value for the editable drop-down. You can also select it from one of the available recordsets in your page by using the lightning icon on the right.
  10. The three buttons on the right of the interface offer you the next functionalities:
    · Click OK when you are done configuring the server behavior.
    · Click Cancel to exit without applying the new settings.
    · The Help button opens this help page.
Note: If you use this server behavior on the ColdFusion server model, a file named Application.cfm will be automatically generated in the site root folder. Do not delete this file, as it contains settings related to session variables used by the server behavior and the current application. If you remove this file or modify it, application pages that use sessions will not function properly.