Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi folks -
I have a hierarchy that displays in tree view. I would like to be able to click on a group and have it select every item underneath it. For instance, if we look at the following example:
FOOD
- Vegetables
- Onion
- Pepper
- Carrot
- Fruit
- Banana
- Apple
- Orange
Right now, I can select Onion, Pepper, and Carrot by clicking them individually or dragging across them. What I would like to do is click "Vegetables" and have it select Onion, Pepper, and Carrot for me. Thanks!
like this:
LOAD * INLINE [
Dish
Vegetables
Vegetables/Onion
Vegetables/Pepper
Vegetables/Carrot
Fruit
Fruit/Banana
Fruit/Apple
Fruit/Orange
];
regards
Marco
This could at least get you started:
For a hierarchy field "Field0", you could add a field event trigger to the OnSelect event.
I tried the action "Select in Field" for field "Field0", using the search string exactly as copy and pasted below:
='*$(=Field0)*'
This works as long as the hierarchy branch that you're selecting is expanded.
Not an ideal solution, but maybe it gives you ideas on how to perfect the interface
See attached.
Hi Marco,
Try to collapse the group and than select it.
It should works.
Best regards
Hi Nilos -
Unfortunately, that doesn't seem to work.
Marco,
Try it with the attached file, please.
Hi Marco,
you just have to add the group names ("vegetables", "fruit") as additional rows in your hierarchy field.
hope this helps
regards
Marco 😉
like this:
LOAD * INLINE [
Dish
Vegetables
Vegetables/Onion
Vegetables/Pepper
Vegetables/Carrot
Fruit
Fruit/Banana
Fruit/Apple
Fruit/Orange
];
regards
Marco
Perfect - thank you Marco!