Configure Editable Drop-down

The Editable Drop-down server behavior A server behavior is a reusable component for server-side development. They add blocks of code to your pages for accomplishing specific tasks. Dreamweaver comes with several default server behaviors and the InterAKT extensions add many more to this list. allows the web developers to include an editable drop-down in their site pages. Before applying it, there must be a recordset A recordset is the result of executing an SQL query A query is a SQL command that will extract information from the tables of a database. Essentially, a query is a request for information from your database.. It is composed of multiple rows, each row having multiple columns. The columns presented in the query result depend on the column list declared in the query (they can belong to different tables). The number of rows and their order depend on the query conditions (WHERE, GROUP BY, HAVING, ORDER). The recordset acts as a source of dynamic data The InterAKT Dynamic Data tool is a replacement for the standard dynamic data dialog. It is used in the MX Kollection 3, to provide a unified way of building mark-ups, or place holders. These are recordset fields, server or session variables, and other types of dynamic data that are replaced at runtime by their corresponding values in web applications. 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.

Related Topics