FYI i just open another topic regards the work that i did yesterday that is missing.
also as i said above i managed to find the cause for the query running every couple of seconds.
Ah, I think I misunderstood you above, @gal.polak. Glad you were able to figure out the periodical queries. This isn’t exactly what you’re looking for, but if you’re triggering queries through buttons, you can get the ID of the button that triggered your query through the query’s triggeredById property.