I am looking to define the state of an element by using the Hovered Label value on a Pie Chart (Chart.JS plugin by Techblocks @help6). I am doing this through a workflow as follows:
When the user hovers the pie chart, the state “categorytext” of the element “Group Budget Pie Chart” changes to the text in the Hovered Label value. (No issues here).
I then use the categorytext to search for an Option Set. the Option Set is of type “category” and not "text. So I filter the Option Set with the condition that the Budget Category DISPLAY is equal to the categorytext. HOWEVER, it is not finding any Option Set.
I recently used option sets to set the TITLE tag for the page for SEO reasons. I put some key pairs together for the Meta Title and Descriptions and then filtered it by URL.
Can I see your filter constraints. I have a feeling you may have missed out a step. Or there is possibly a character set issue that is messing up the filter.
Trying to match the Budget Category Option Set based on the Hovered Label Value on a Pie chart. I dont know if the URL approach would work…?
Check out the filter constraint below. See that the categorytext (which is defined in the previous action) is being used to locate the specific Budget Category.
Yeah, we can leave how it is triggered (the URL element you refer to in my example until later).
Let’s get the filtering working first and then we can worry about how to trigger it (I suspect something like Is Hovered will do the trick).
Can you show a screenshot of your Option set please, with all the extra fields too. I want to see what the expression means in terms of the option set itself to check out the filter process.
Alan, as always, the more tinkering done, the closer to the solution.
I found the solution, clearly it was simple. The order of the constraint matters. If I re-order the parameters, and use “contains” instead of “is”, it appears to works (see below).