I believe you use the nested sets approach for your hierarchy data. It sure would be simple for you to return the descendants of a particular group.
Is it worth submitting a feature request to add a method for this? Will it get shot down? I understand you can build it using the children property but for a project I have I would have to check this multiple times because you never know when a customer's group structure changes (like providing a drop down box in a tree-type structure for drill down in to groups). In order to provide up-to-date data you would have to query the group structure a lot looking for changes for every request to the page/form (if I was to store the group structure in another database).
It sure would be nice to add a property on the GroupSearch object called "descendants" where you submit the id of the group to start at. If you are using nested sets, it would be a quick call for you.
Kind of like you have for devices. With DeviceSearch you can submit a group id for the groups property and get all vehicles at that level or below in the tree structure.
Please sign in to leave a comment.