Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Multiple boolean variables in aggregate filter (Sql query)

$
0
0

J. wrote:

Hi,


I think you should do this in one filter and more like

(Session.Signalen_geregeld = False or (Signaal2.Status = "Geregeld" and Session.Signalen_geregeld = True))
OR
(Session.Signalen_XXX = False or (Signaal2.Status = "XXX" and Session.Signalen_XXX = True))


So this didn't work, but gave me an idea. I found it works like this: 

(Signaal2.Status = "Geregeld" and Session.Signalen_Geregeld = True) or
(Signaal2.Status = "XXX" and Session.Signalen_XXX = True) or

Etc. I also put a statement in the same filter that checks if all session variables are false, so the full list gets shown. when there is no filter selected.

Thanks for the help!



Viewing all articles
Browse latest Browse all 1476385


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>