I have created a new table, that contains the RefTableId & RefRecId linked to CustTable.TableId & CustTable.RecId.
Then I created a simple query for the new table with no ranges at all, and a new security policy using the new query with Constriction type = RoleProperty and a ContextString, and finally a new role having the same ContextString as the security policy. I assigned the new role to a test user.
First I just looked at customers, and it didn't show any customers.
Then I tried to remove the ContextString from the new role, and then it shows all customers.
Then I created a new form joining customers with the new table, and it showed only the customers existing in the new table.
Then I added the ContextString again, and then it doesn't show any customers in either CustTableListPage, or my new test form.
So I reasoned that the problem is somehow the query, but since I have no ranges on it, then I don't understand what could be wrong?
Has anybody experienced something like this?