photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: Carbo69 on May 16, 2022, 09:46:17 AM

Title: Question about child category
Post by: Carbo69 on May 16, 2022, 09:46:17 AM
Hello,

I need some explanations on category hierarchy.

I've done the following actions:
- I've created a new category "autor" showing files without creator (formula "@MetadataTag[creator,novalue]")
- in the category tree, it's correctly displayed: autor (73678).
- when I click on it, the files are displayed
- If I go to the hierarchy display option and select "show only directly assigned files", my files are no longer displayed. Could you explain why ?
- I create a child category
- Now the tree shows:
   - autor (0/73678)
   -- new category (0)
- I would have expected:
   - autor (73678)
   -- new category(0)

Thanks !
Title: Re: Question about child category
Post by: Mario on May 16, 2022, 09:52:18 AM
QuoteIf I go to the hierarchy display option and select "show only directly assigned files", my files are no longer displayed. Could you explain why ?

Directly assigned files means files directly assigned by the user.
Not files virtually assigned to a category via a formula or a data-driven child category.

Don't mix data-driven categories with normal categories. How did you create a child category for a data-driven category? This is impossible.
Title: Re: Question about child category
Post by: Carbo69 on May 16, 2022, 10:50:06 AM
My parent category is not a data driven category but a formula based category ;)
Title: Re: Question about child category
Post by: Mario on May 16, 2022, 02:08:14 PM
I also recommend to not mix formula-based and other categories.
Formula-based categories should be sealed (see The Category Properties Tab (https://www.photools.com/help/imatch/cat_basics.htm?dl=h-34)) to prevent accidental assignments of additional files (which leads to often hard to figure-out results), and should not have child categories either.
Remember that a category always contains all files assigned to it's child categories, recursively. Depending on what you do, mixing categories that way may lead to confusing results.