Posted on 31/03/2017 10:57:21
Hello Steffen,
I am afraidn I was misleading you. I want just the opposite. I need the FacetOptions loop to list all options regardless of the result count. This way I have a chance to decide if I want them to show or not.
Right now, the behavior is somehow correct but I thing there is a bug somewhere in the system.
If you pair the Facet correctly with the designated Parameter it is supposed to be bound, It will not render any option in the loop. If you bound the facet on a wrong Parameter, the behavior is the one I was expecting (see screenshot)
If want to test, please have a look at http://ttonline.dotfusion.ro repository Company. The repository is based on a SQL index and you can notice 2 things:
1. The New field dialog is not behaving correctly. The field select control is empty. Probably because of the aliases used in the SQL statement
2. In the company.facet you will see that the "Sectiune" facet is connected to the "Tip" Parameter instead of the "Sectiune" Parameter. That was the only scenario that worked.
I hope I am making sense in my explanation.
Thanks,
Adrian