The application consists of, among other things, creating new cards for each event.
Each new card (for a new event) contains a number of combo buttons to enable the user to select from the given choices within the combo buttons.
All of these combo buttons are part of a background group, so that when the user creates a new card, all of the combo boxes, and other fields, are displayed on the new card.
Much to my chagrin, I found out that when the combo box choice is changed, it is CHANGED IN EVERY CARD IN THE STACK.
I do NOT want this. What I want is when a combo box selection is made, it holds to that selection for that card only, NOT all previous cards!
I'd really appreciate suggestions on how to accomplish this.
Thanks...Tom
Combo Button selection affects ALL instances of that button
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Hi Tom,
The easiest way to accomplish this, is to coy the selection into an invisible field (part of your background group) upon closeCard, and put its content into the combobox upon preOpenCard.
So your background group would have a script like:
It's inconvenient, but comboboxes are buttons, not fields - and you have similar issues with checkboxes and radiobutton groups.
Jan Schenkel
The easiest way to accomplish this, is to coy the selection into an invisible field (part of your background group) upon closeCard, and put its content into the combobox upon preOpenCard.
So your background group would have a script like:
Code: Select all
on closeCard
put the label of button "MyCombobox" into field "MyInvisibleField"
end closeCard
on preOpenCard
set the label of button "MyCombobox" to field "MyInvisibleField"
end preOpenCard
Jan Schenkel
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com