Logo

    Home

    Documentation

    Use Cases

    Training

    Applications

    Release Notes

    Add and configure a Dropdown (SWAT DynSelect)

    Add and configure a Dropdown (SWAT DynSelect)

    1 Context

    🧠
    In this task, we will add a dropdown menu to an existing form. We will use the dropdown menu to link two tables/objects together. In our case, we want to connect the order and customer tables in a different way. We will use the dropdown menu to display the customer number in the order form that corresponds to a specific order number.

    2 Result

    image

    3 Step by step guide

    1. Open the Screen Designer of your order overview screen
    2. Open the Object designer for the master object of the “OrderForm”
    3. Search in the panel “Library of objects” for the object “CustomerSelect”
    4. icon

      We want to show the customer’s name additional to the customer number

    5. Delete the field “CustNum” entry by clicking the small trash bin icon next to it
    6. icon

      We are going to add a new select for that field

    7. Drag and drop the “CustomerSelect” on the “Ordernum” in the “OrderForm”
    8. Rename the “CustomerSelect” in the panel “Attributes” by changing the “Object Name” to “CustNum”
    9. icon

      So this field in the Form is showing the data of the CustNum field of the DSO

    10. Now configure the following attributes:
      1. UI Field-> “custnum”
      2. icon

        Here you define the field, which should be displayed in the DynSelect after choosing an option.

      3. Saved Field→ “custnum”
      4. icon

        Field name, in which the chosen value will be saved

      5. Binding Field-> “custnum”
      6. icon

        Cell Display (value will be displayed in the column - fieldname of Grid-/Form-Entity

      7. List Design Fields→ |custnum|name
      8. icon

        The options that will be shown in the selection

    11. Launch the screen to see the result

    4 Explanation

    icon
    The dropdown/dynSelect is usually used in the B1 environment to link two tables together. Additionally, it can be used for other use cases such as searching within the same table or prefilling other form fields.

    5 Helpcenter Article

    Select (DynSelect)

    A SwatSelect can be used to display a DropDown in a ‣ or ‣ . It can also be used to join two tables.

    helpcenter.build.one

    Logo