I'm trying to create an interactive slide where the user can sort columns of a table by clicking the headers (like you would in Excel). However, I cannot seem to get two single click triggers to work on one hotspot. I have set it up so that the image of the table changes state when the hotspot is clicked with a condition that the image is not already in that state.
Anyone know how I can make the two triggers work on the one hotspot? Or is there another way of doing this?
Here's why: If you have a trigger that changes a state to "State1" if the state is State2", the whether the item states in State1 or State2, after this trigger it will be in State2. But you need another trigger to change it to State1. So that trigger looks like Change to "State1" if state is "State2". So no matter what state it starts in, it will end up in State1. If you change the trigger order, it always ends in State2.
For this to work, you need another object or variable that is independent. It must change to either condition depending, not on itself, but the condition of an external object.
In the attached file, I have set column A to sort using a variable. Using a T/F variable is my preferred method, because you can just toggle it and don't have to do conditional checks. Column B sorts depending on the state of another object.
Instead of a hotspot use a transparent shape with a selected state (also transparent). Then just add two strikers to toggle the state based on selected or not selected. Using variable would work as well, I just try and avoid them unless absolutely necessary.
8 Replies
I don't think I fully understand what you are trying to do... can you share a slide?
I can't share the slide in question due to the content, but I've quickly thrown together one similar.
Basically, I want the user to be able to sort the content of the table by clicking on the header.
Also, I have only added the triggers to sort column 'A'.
For this concept to work, you need two items.
Here's why: If you have a trigger that changes a state to "State1" if the state is State2", the whether the item states in State1 or State2, after this trigger it will be in State2. But you need another trigger to change it to State1. So that trigger looks like Change to "State1" if state is "State2". So no matter what state it starts in, it will end up in State1. If you change the trigger order, it always ends in State2.
For this to work, you need another object or variable that is independent. It must change to either condition depending, not on itself, but the condition of an external object.
In the attached file, I have set column A to sort using a variable. Using a T/F variable is my preferred method, because you can just toggle it and don't have to do conditional checks. Column B sorts depending on the state of another object.
Instead of a hotspot use a transparent shape with a selected state (also transparent). Then just add two strikers to toggle the state based on selected or not selected. Using variable would work as well, I just try and avoid them unless absolutely necessary.
Phil is right. In my sample, use the selected state for the column B shape, and you can avoid those triggers.
There is more than one way to skin a cat
:-)
This is amazing!
Thank you both so much!
This discussion is closed. You can start a new discussion or contact Articulate Support.