item DropDown

beasscript-logo-small

BS: Drop-down allows you to choose a value from List

There are 3  concepts:

 

1. The list of ID+Display text are defined inside the field. In the Input field you can only see the Display text, but the ID is saved.
Use this type if the simple variant is enough or if you don't want to see the ID.

Note: If SQL command is necessary, it takes more time to open a window.

dropdownVariant1

2. In the drop-down you can see the ID and additional fields  and choose the ID.
This list is created in the moment of the view of the list.

This variant don't reduce the performance from the program. Use this variant if possible

Source can be
- manual values
- SQL select command

- odata (bsl) command

dropdownformat

3. Other type of Drop-down as Date, Bitmap or Color

dropdownCalendar     dropdownBmp dropdownColor

 

 

If drop-down value defined, the system insert automatically the drop-down icon right of the field
Object name of this drop-down icon is always object name + "_p", example "utf1_p"

 

It is possible to modify standard drop-downs. See Drop-down.script

 

Open drop-down window:: use drop-down without properties:

dw_1.item.myfield.dropdown

 

Define Drop-down properties

Property

Description

dropdown.addvalues

Add Values to the current value-List

dropdown.filedir

Load files from directory or from reports

dropdown.format

Define Type and Format of Drop-down window

dropdown.formatvalues

Define manuel data for formated dropdown

dropdown.fromdw

Create a drop-down field from other dw

dropdown.fromfield=<column2>

Copy the values from other field to the current field

dropdown.select=<selectcommand>

Greate drop-down from select command

dropdown.bsl=<odata>

Activate Drop-Down from ODATA command (Beas service layer)

dropdown.setvalues=<values>

set value list directly in datawindowformat

dropdown.translate

Translate all Value Entries from the value-List

dropdown.script

Send script to the drop-down window after creation

dropdown.values=..

Define Values for the field