Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox association: aggregate counters disregard Xpath constraint #28

Open
stapersmaj opened this issue Feb 22, 2019 · 0 comments
Open

Comments

@stapersmaj
Copy link

Using the checkbox association widget in a Mx7.23.1 project (not checked in earlier versions). The widget is tied to a listview with an XPath datasource.

I have defined a constraint to limit the options being shown to the user, this works as intended and only shows options that should be selectable. However, the aggregate counter to show the amount of expected results does not seem to take the constraint into account and shows a number that is too high.

I would expect that the result counter would take both the select options constraint and/or the grid's static Xpath constraint into account when counting possible results (and ideally also any filters that were applied using other GridSearch widgets)

Some context: I have a listview displaying 'products' with for example a brand and a price attribute. Users are limited in the price range they can select from, this is controlled using the Xpath constraint of the listview itself. In my scenario, the widget displays only brands that are allowed based on said price range (as intended), but the amount indicator also counts products which fall outside the price range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant