Existing example relationships in system are:
<CategoryEntity> -> <Subentity>
- ReportCategory -> Report
- KnowledgeBaseCategory -> KnowledgeBase
- DocumentFolder -> Document
- ProductCategory -> Product
Standard link is of type "belongsTo" or "hasMany".
There is a middle DB table representing tree structure {CategoryEntityName}_path representing tree structure of the categories.
List view of the subentity offers two types of view: "Collapsed" ( = Folder view) and "Expanded" ( = Tree view).
The first shows only direct childs, when category is selected.
The latter one shows all descendants of the selected category.
How can one use these two methods of filtration for subentity in List View Search Filters and mainly in Report Filters?
(Example usage: report all documents belonging to certain folder recursively )
The standard filtration searchOptions for link of type belongsTo are: "isEmpty", "isNotEmpty", "equals", "notEquals".
When using equals, this filters out only direct childs of course.
The internal tree view logic uses a term "inCategory"
Best way would be adding some extra searchOptions for link searchOptions: "inCategory", "notInCategory", "inAnyOfCategories", "notInCategories"
For link of the type "hasMany" some more: "inAllCategories" etc.
These options would be visible only when linked entity has scope attribute "type": "CategoryTree".
<CategoryEntity> -> <Subentity>
- ReportCategory -> Report
- KnowledgeBaseCategory -> KnowledgeBase
- DocumentFolder -> Document
- ProductCategory -> Product
Standard link is of type "belongsTo" or "hasMany".
There is a middle DB table representing tree structure {CategoryEntityName}_path representing tree structure of the categories.
List view of the subentity offers two types of view: "Collapsed" ( = Folder view) and "Expanded" ( = Tree view).
The first shows only direct childs, when category is selected.
The latter one shows all descendants of the selected category.
How can one use these two methods of filtration for subentity in List View Search Filters and mainly in Report Filters?
(Example usage: report all documents belonging to certain folder recursively )
The standard filtration searchOptions for link of type belongsTo are: "isEmpty", "isNotEmpty", "equals", "notEquals".
When using equals, this filters out only direct childs of course.
The internal tree view logic uses a term "inCategory"
Best way would be adding some extra searchOptions for link searchOptions: "inCategory", "notInCategory", "inAnyOfCategories", "notInCategories"
For link of the type "hasMany" some more: "inAllCategories" etc.
These options would be visible only when linked entity has scope attribute "type": "CategoryTree".
Comment