Configure Multi-field Drop-down

The Multi-field Drop-down server behavior allows the web developers to include a multi-field drop-down in their site pages. Before applying it, there must be two recordsets created in the Dreamweaver page, a list/menu item and at least an input item inserted.

Also, the list/menu item must have values associated to it. Do this dynamically, using one the two recordsets previously created, namely the one that contains the foreign key table column. To do this, select the list/menu item in your Dreamweaver page and use the Property Inspector to associate values to it:

 

Hit the Dynamic button and configure the dialog box that opens similarly to the following example:

 

Select the recordset retrieved from the 'detail' table (the one that contains the foreign key). As values, select the foreign key, and as labels, select the field that will display the information you want to be shown.

 

This server behavior is accessible from the Application panel, Server Behaviors -> + -> MX Kollection -> Form Controls -> Multi-field 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 Master field drop-down menu select the form element that has the master role, namely the list/menu item.
  2. In the Detail field drop-down menu select the form element that has the detail role (an input tag).
  3. In the Recordset drop-down menu select the recordset to be used for the detail field. The selected recordset should contain the data that you want displayed in the input field when using the multi-field drop-down.
  4. In the Primary key drop-down menu specify the primary key field for the current recordset.
  5. In the Get labels from drop-down menu select the table field that stores the names you want to be shown in the detail field.
  6. 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.