hi
I am trying to NOT show a container if it HAS a query result.
For some reason it won’t work. I have tried it as condition and also as a show/hide attribute. I am using hasitems() and I know my query returns NO results as I run the same query in my sql profiler.
but the container I have this on always shows, even though it has no items in the query.
I also removed the condition and set it up as a show with the same conditions and the container always showed, again even with no results, i tried reversing it to hide and removed the !, same result.
is there a bug? or have I missed something fundamental? I have use the same type of code in other pages, other parts of this page (the hasItems) and it works, i am stumped
I tried the hide/show route and it wouldnt work either, I am going to try again, I prefered the condition because then it is properly hidden now just a css show/hide
I can use show or hide, just be using the ! on has items expression, but I have 2 browsers open, looking at 2 bookings, one of those bookings returns a recordset and the other booking does not return a recordset, but, the container shows (or hides) the same for both bookings, but they should be opposite as return different recordsets
You can’t use hasItems() with single queries as they don’t return arrays… Not sure how you ended up with it there, but the UI doesn’t even offer it for single queries
ah ok, i typed it in, and once type in it showed in the ui, didnt think to check it the other way. so am i best to change it to a multi? just try to minimisee DB load and thought a single would be less somehow