Is it possible to create dependent filters in XWiki Live Data with database list properties?

Hi XWiki community,

I’m configuring custom filters in Live Data, where each filter corresponds to a database list property that renders as a dropdown menu with options. I’d like these filters to be dependent on each other. For example, if I select option 1 in Filter 1, I’d like to restrict the available options in Filter 2 based on that selection.

Is there a way to implement this dependency logic directly within Live Data, or would custom JavaScript be required to manage these dropdown dependencies?

Thank you!

Hello @babbadabra,
This is an interesting idea, but currently this would require custom JavaScript.

1 Like

Thank you for your response, that’s what I’m doing currently.

Hey @babbadabra

Sorry to hijack this topic. I currently try to figure out something you might already implemented …

My use case is a property in class (X) that relates to another class (Y) referencing the other class ID property (Y.ID), but displays the Name property of that other class (Y.Name).

The issue I’m facing with this in Live Data is that the custom Database List field in the Class X cannot be filtered by the name, as the real value stored in the property “referencedName” of the Class X is the Y.ID, not the Y.Name. I can filter it by ID, but this is not convenient.

My goal would be to fill the filter dropdown of X.referencedName with value=Y.ID and display text of Y.Name

Did your statement

I’m configuring custom filters in Live Data, where each filter corresponds to a database list property that renders as a dropdown menu with options.

relate to this functionality, and if so, could you please provide me with some hints on how you achieved this?

Right now I only see an additional drop down outside of the Live Data to then filter the Live Data based on the ID …

Thank you