INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: [24.0.41; Query] Skipping empty values in tree  (Read 824 times)

Gatherum

  • Citizen of the Universe
  • *****
  • Posts: 651
[24.0.41; Query] Skipping empty values in tree
« on: July 30, 2018, 05:20:11 am »

So I'm rebuilding my video views to be less of a general mess and also to make it easier on me to maintain. Thus far, I have the ordered categories as seen in the attachment; however, not every indexed file or particle has data in all of the relevant fields. For example, my copy of Dunkirk has data in [Franchise], [Series], [Language], and [Subtitle Language] but not in any of the other fields. The [Series] category is set so that if the data in the field is equal to that of [Franchise], then the return is also empty. That means that in this particlar case, one must drill down through four levels of "Unassigned" between [Franchise] and [Language]. This is obviously not the desired behaviour. What I would prefer to happen is for MC to simply skip all of the categories with no data in their respective fields and go straight to the next category with data. Is there a toggle that enables this somewhere? If not, consider it a feature request.

And yes, I am aware that I could define just one category as a super long ListBuild() expression with a mode of 1, a delimiter of '\', and data type set to list; however, I am hoping to get away from this as a first solution because such expressions can get egregiously long when using other nested functions (and I am). Not only that, but the file list drawer pulls up upon drilling down to the second level when using ListBuild()—something I'd also like to avoid and which doesn't happen when using separate categories instead.

In short, I'm between a rock and a hard place. Help?
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10935
Re: [24.0.41; Query] Skipping empty values in tree
« Reply #1 on: July 30, 2018, 05:38:36 am »

I'm not sure how this is supposed to work in a tree, where you can have files that have data in those fields, and some that perhaps don't. The tree would get rather awkward.
Logged
~ nevcairiel
~ Author of LAV Filters

Gatherum

  • Citizen of the Universe
  • *****
  • Posts: 651
Re: [24.0.41; Query] Skipping empty values in tree
« Reply #2 on: July 30, 2018, 05:55:19 am »

I'm not sure how this is supposed to work in a tree, where you can have files that have data in those fields, and some that perhaps don't. The tree would get rather awkward.

The branches would be dynamic and some would be shorter than others, assuming that the database was set to skip categories whose associated fields had no data and go instead to the next one down that did, instead of displaying "Unassigned".

This principle works in ListBuild() via mode 1. See attachments. Note the variable length of the branches as they are indicated at the top. Dunkirk has no data in the [Season] field; therefore, I am not shown the Season level when drilling down. The episodes of K-On!, however, do have data in the [Season] field; therefore, I am shown the Season level during the drill-down.

I just want this feature to be available in Categories view so I don't have to maintain a big ol' ListBuild() expression. Also, again, for whatever reason, the file drawer comes up after one or two levels when using ListBuild() (it varies by how big the window is); I want it to only appear when I've reached the end of the branch. That's not a problem when using categories instead.
Logged

Gatherum

  • Citizen of the Universe
  • *****
  • Posts: 651
Re: [24.0.41; Query] Skipping empty values in tree
« Reply #3 on: July 30, 2018, 06:27:02 am »

Alternatively, is there a way to turn off the file list drawer in favour of a full-screen file list at the end of the branch?
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: [24.0.41; Query] Skipping empty values in tree
« Reply #4 on: July 30, 2018, 06:33:23 am »

I'm pretty sure that by default, when browsing using a 'category' view scheme, when you arrive at a result that shows just one line of thumbs, the file list opens automatically, and there is no option to control this behaviour.

Personally, I find it handy... that final level is taking you to the file list anyway.... ?

Gatherum

  • Citizen of the Universe
  • *****
  • Posts: 651
Re: [24.0.41; Query] Skipping empty values in tree
« Reply #5 on: July 30, 2018, 06:39:43 am »

I'm pretty sure that by default, when browsing using a 'category' view scheme, when you arrive at a result that shows just one line of thumbs, the file list opens automatically, and there is no option to control this behaviour.

Personally, I find it handy... that final level is taking you to the file list anyway.... ?

In a word, yes, but it's more accurate to say that it's there before I get that far.

It would be cool if one could control that behaviour.
Logged
Pages: [1]   Go Up