woznyp
Member
Hi,
my problem for today:
I want to pre-filter one table by using value of one filed as calculation element ("dopobrania___groupcheck").
Code in groupcheck:
Current result on list:
The idea is: for every user who can see this list, that user should see only records with group the same as his.
In db table there should be only one record with one file for one user group.
Calculation checks if user belongs to group from filed "dopobrania___grupa" and if true returns user_id.
I tried to user pre-filter on filed "dopobrania___groupcheck" as this:
But it returns no records!
It doesn`t matter what is stored in db in "dopobrania___groupcheck" (can be NULL) because it should be re-calculated when list is loaded.
my problem for today:
I want to pre-filter one table by using value of one filed as calculation element ("dopobrania___groupcheck").
Code in groupcheck:
Current result on list:
The idea is: for every user who can see this list, that user should see only records with group the same as his.
In db table there should be only one record with one file for one user group.
Calculation checks if user belongs to group from filed "dopobrania___grupa" and if true returns user_id.
I tried to user pre-filter on filed "dopobrania___groupcheck" as this:
But it returns no records!
It doesn`t matter what is stored in db in "dopobrania___groupcheck" (can be NULL) because it should be re-calculated when list is loaded.