Dropdown menus in an Edit table
You can include dropdown (a.k.a. pulldown) menus in cells of an Edit table, to let end users select an option for each cell in the table. Here is an example, viewed in Browse mode:
You use the Choice() function in the Edit table cells, similar using Choice to specify a single pulldown menu for a variable. Here is how to create such a table:
- Create a variable
X
as an Edit table, in the usual way. - Create an Index variable -- e.g.
K
-- containing the list of options you want to make available from the menu(s). - In the Edit table of
X
, in Edit mode, into each cell that you want to show the menu, enter:Choice(K, 1, 0)
, to use the first value ofK
as the initial default value. - Create an Input node for
X
: SelectX
, then select Make Input from the Object menu.
You can put a menu in one, some, or all cells. You can put different menus into different cells by using a different Index, K.
Here is an example viewed in Edit mode, with dropdown menus in some but not all cells:
History
Introduced in Analytica 4.0.
See Also
Comments
Enable comment auto-refresher