Problem: I want to set XDS Query in such a way that when it found zero rows it should return all possible values.
Details:
I got a requirement to have a single security Role to work with multiple security policies.
Each policy got an especial column in custom security table from where it gets its parameters for XDS Query. Custom security table is a custom table which is like matrics to assign different warehouse, itemgroup etc to different users
Till now everything working fine. Now the client wants that if now warehouse is assigned to a user all warehouse data should be shown instead of no data.
Is there any way I can achieve this by changing the XDS query to get all the record if no warehouse or itemgroup is assigned in the security table.