Variable in the filter

Hi,
is there a way to set a variable in the filter? Specifically, for example doo.currentUser.login in the speedometer widget filter. Something like {doo.currentUser.login}…

The widget should display the number of clients, but for the “manager” role (which displays not only own clients but also clients of all subordinate users) it displays the total number. I would need to filter out something like “number of own clients”… :slight_smile:

Thanks…
Kuba

Hi,

you can’t write an object or Type script into the filter as you have in the example. The only way to do this is if the currentLogin is an Email type field and the system currentUser can be assigned to it.

Thanks, I understand that it can’t be set in the filter. But I don’t understand how assigning currentUser to the currentLogin field will help?
Can you please explain this somehow?

Thanks, Kuba

Hi,

you cannot write an object or anything else to the filter. You can filter currentUser only for the Email field and the preset filter. Otherwise everything would have to be scripted in a free html widget.

I also considered converting it to an html widget, but then I tried adding a linked field to the table (login from the User table) and entering it into the widget filter with the value “currentUser”.
Thanks for the tip, it works exactly as I need… :+1:

Kuba

25-04-25_171435_Tabidoo_-OLIN-Klienti—_Mozilla_Firefox