Show only records belonging to the logged-in user

7 views
Skip to first unread message

Valmir Santana

unread,
Oct 30, 2025, 5:32:43 PM (7 days ago) Oct 30
to Jam.py Users Mailing List

Hi! It seems like something simple, but I must be missing something. I have a catalog that contains records from several users, but I want each user to see only their own records. I tried using `on_form_view_created`, but I couldn’t get it to work.

Any ideas?

Thanks for the great work!

Dean D. Babic

unread,
Oct 30, 2025, 11:35:13 PM (6 days ago) Oct 30
to Jam.py Users Mailing List
This?
https://jampy-docs-v7.readthedocs.io/en/latest/how_to/how_to_multitenancy.html

It works well. user_id is integer and for user Test it is 2.
how_to_multitenancy_jampy.png

Valmir Santana

unread,
Oct 31, 2025, 3:48:23 AM (6 days ago) Oct 31
to Jam.py Users Mailing List

Nice! 

The catch was that I was trying it on the client side


Valmir

Em 31 de out. de 2025, à(s) 00:35, Dean D. Babic <bab...@gmail.com> escreveu:

This?

https://jampy-docs-v7.readthedocs.io/en/latest/how_to/how_to_multitenancy.html

It works well. user_id is integer and for user Test it is 2.
<how_to_multitenancy_jampy.png>


On Friday, October 31, 2025 at 5:32:43 AM UTC+8 vsan...@gmail.com wrote:

Hi! It seems like something simple, but I must be missing something. I have a catalog that contains records from several users, but I want each user to see only their own records. I tried using `on_form_view_created`, but I couldn’t get it to work.

Any ideas?

Thanks for the great work!

--
You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jam-py/5690205f-1cec-49b4-bf31-98bfab63d546n%40googlegroups.com.
<how_to_multitenancy_jampy.png>
Reply all
Reply to author
Forward
0 new messages