Dropdown menus in an Edit table

Revision as of 21:13, 7 March 2016 by Bbecane (talk | contribs)


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:

Edit table with menus.png

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:

  1. Create a variable X as an Edit table, in the usual way.
  2. Create an Index variable -- e.g. K -- containing the list of options you want to make available from the menu(s).
  3. 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 of K as the initial default value.
  4. Create an Input node for X: Select X, 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:

Edit table with menus edit mode.png

History

Introduced in Analytica 4.0.

See Also

Comments


You are not allowed to post comments.