Filter Combobox
Posted: Fri Apr 12, 2019 8:49 am
Hi,
I have the following challenge in my multi-company application:
1. Data structure:
master table Group
sub table Company with a Group_ID field
table User has a Group_ID and Company_ID field (both combobox);
Users can be:
- Administrator with access to all Groups and all Companies (Group_ID and Company_ID empty);
- Groupadministrator with access to only one Group, but all Companies within that Group (only Group_ID selected)
- Normal User with access to only one Company, hence only one Group too (both Group_ID and Company_ID selected)
tabel Relation
every Relation is owned by a Company and has a Company_ID field (combobox)
2. Problem
In both the UserWorkscreen and the RelationWorkscreen the Company_ID combobox should be filtered in accordance to the Group_ID (no filtering if no Group_ID selected, filtering on Group_ID when a Group is attributed.
I have tried to filter with setAdditionalCondition method from ILinkedCellEditor, but this apparently doesn't work, because the combobox remains completely empty when filtering)
Any idea how to make this work?
Luc
I have the following challenge in my multi-company application:
1. Data structure:
master table Group
sub table Company with a Group_ID field
table User has a Group_ID and Company_ID field (both combobox);
Users can be:
- Administrator with access to all Groups and all Companies (Group_ID and Company_ID empty);
- Groupadministrator with access to only one Group, but all Companies within that Group (only Group_ID selected)
- Normal User with access to only one Company, hence only one Group too (both Group_ID and Company_ID selected)
tabel Relation
every Relation is owned by a Company and has a Company_ID field (combobox)
2. Problem
In both the UserWorkscreen and the RelationWorkscreen the Company_ID combobox should be filtered in accordance to the Group_ID (no filtering if no Group_ID selected, filtering on Group_ID when a Group is attributed.
I have tried to filter with setAdditionalCondition method from ILinkedCellEditor, but this apparently doesn't work, because the combobox remains completely empty when filtering)
Any idea how to make this work?
Luc