Message Boards Message Boards

GROUPS:

A question on using dynamic control objects

Posted 6 days ago
126 Views
|
0 Replies
|
1 Total Likes
|

Reference the attached notebook (which is a toy example), I have a PopupMenu with three items (opt1). For each item in the PopupMenu there's a list of options that can be selected/deselected using a CheckboxBar (opt2). The point I'm stuck on is how to reset the list of selected options, opt2, from the CheckboxBar whenever the selected item (opt1) in the main PopupMen changes. Basically, I want to reset the list of items in opt2 to an empty lists {} whenever opt1 changes.

I could add a button to do this, but it seems unnecessary and I'd prefer not to have do so.

Any suggestions would be very much appreciated.


Solved

Have figured out a solution - see second attached notebook (ExampleNotebook2.nb).

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract