I have a table with people of different companies. The primary key of the person table is: compId and personId. I have an organisation chart where I want to create a lookup of the head of the department. the primary key of organisation table is compId and orgId. In the organisation table I have a field chief_personId. Now I need a lookup on this chief field. I need a lookup fromthe table person where compId=’{compid}’ and personId={chief_personid}
My problem is that I cannot use select as it does not allow me to add a where clause. I cannot use a text autocomplete because if I create a link I can only apply for one key (person_id).