Dear community,
We added a detail to our product page where we can add options.
These options are products as well so whenever we press on the "+" we get a popup with a muliselect where we can choose all the options:
The problem here is that we can see all the options with different Categories.
How can we filter so it only shows the category that is the same as the product above it?
thank you!
Kind regards,
Yosef
Like
Hello Yosef,
You can add additional filters to the lookup for the detail by overriding the getAllLookupFilters method from the LookupMultiAddMixin, I have an article on how to do that here: https://customerfx.com/article/adding-additional-filters-to-a-detail-ad…
Ryan
As far as getting the product category from the parent record, I'm not sure that it would work to pass values to the detail (as outlined here https://customerfx.com/article/passing-values-from-a-page-to-a-new-reco…) for the case where the detail is using the LookupMultiAddMixin. Your best bet is to use the sandbox to request the current category value from the page.
Ryan