Hmmm.
I think your data structure setup is not correct or at least incomplete.
Your example shows it clearly:
you assign organizations to your incident areas and to your Groups
both relations are already existent: pcat.organization and grp.organization.
I would not add an org SREL to the grpmem factory.
The only thing missing from my Point of view, is a list attribute (BREL) which contains a list of groups belonging to an organization.
OBJECT org {
ATTRIBUTES usp_organization SECONDARY {
org_group_list BREL grp organization;
};
};
Your view constraint for pcat might then look like
organization.org_group_list.member_list.member=@root.id
this can be read as (from right to left):
View all pcat's where the logged in user (@root.id)
is a member of one of the groups (member_list.member)
which are one of the groups (org_group_list)
which do have the same organization as an incident area(organization).
Hope that helps and works....
Regards
......Michael