I've had a look and haven't found anything that answers my specific need.
I have an app that has a bill of materials and an order.
Bill of materials is a self referencing hirarchy of parts e.g.
- Widget 1
- Assembly 1
- screw type 9
- ring type A
- spring type 6
- Assembly 2
- doodah X
- Bit 9
- Thinkgy 33
- doodah X
- Assembly 1
- Widget 2
- etc
If Assembly 1 gets added to an order then it should no longer be visible as an option in the bill of materials (nor should anything under it). Or if doodah X gets added then it and its child should no longer be visible. This is obviously a very simplified example to demonstrate the need.
Is there a way to filter out the child nodes of a treelist like this?