|
|
Line 1: |
Line 1: |
− | [[Category:Menus]] | + | #REDIRECT [[Choice menus and Checkboxes in an edit table]] |
− | [[Category:Ana: Status M]] <!-- For Lumina use, do not change -->
| |
− | | |
− | | |
− | 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:
| |
− | | |
− | :[[Image:Edit table with menus.png|center|500px]]
| |
− | | |
− | 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 <code>X</code> as an Edit table, in the usual way.
| |
− | # Create an Index variable -- e.g. <code>K</code> -- containing the list of options you want to make available from the menu(s).
| |
− | # In the Edit table of <code>X</code>, in Edit mode, into each cell that you want to show the menu, enter: <code>Choice(K, 1, 0)</code>, to use the first value of <code>K</code> as the initial default value.
| |
− | # Create an Input node for <code>X</code>: Select <code>X</code>, 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:
| |
− | | |
− | :[[Image:Edit table with menus edit mode.png|center|500px]]
| |
− | | |
− | ==History==
| |
− | Introduced in [[What's new in Analytica 4.0?|Analytica 4.0]].
| |
− | | |
− | ==See Also==
| |
− | * [[To make an edit table]]
| |
− | * [[Choice]]
| |
Enable comment auto-refresher