I have 4 tables. One table projects, second activities, third subactivity and fourth table named act_subact containing the ids and their relations.
I have created a list named comparison with 3 fields actually 5 but the other 2 are just text fields.
First field projects with dropdown field from table projects.
Second field cascading field name activity from 4th relational table act_subact with concat
(SELECT activity_name FROM activities WHERE id = act_subact.activity_name) to show the actual name of the field.
watch element is set Project name from comparioson (current list) and foreign key is project name from act_subact
relationship table.
Third field is also cascading field named subactivity from 4th relational table act_subact ( I have removed concat at the moment till I resolve the core issue itself.
watch element is set to activity name from comparison (current list) and foreign key is activity name from act_subact relationship table.
Basically is the same setup as second field.
The issue is the following:
First field shows fine the list of the project names in the dropdown.
Second field activity populates fine when some project is selected in the first field.
Third field does not populate its empty when second field is selected.
What I need is to display the third field based on the previous two selections. In the above setup third field watches only activity field which might occur multiple times in the relationship table and cannot produce proper display.
I tried few things but non of them worked.
I believe the proper solution is to add the following in advanced under query clause but I am missing something since its not working.
comparison.project_name=act_subact.project_name
comparison is the current table containing the drop-down fields and act_subact is the relationship table.
Any advise or suggestion is much appreciated.
Thank you
I have created a list named comparison with 3 fields actually 5 but the other 2 are just text fields.
First field projects with dropdown field from table projects.
Second field cascading field name activity from 4th relational table act_subact with concat
(SELECT activity_name FROM activities WHERE id = act_subact.activity_name) to show the actual name of the field.
watch element is set Project name from comparioson (current list) and foreign key is project name from act_subact
relationship table.
Third field is also cascading field named subactivity from 4th relational table act_subact ( I have removed concat at the moment till I resolve the core issue itself.
watch element is set to activity name from comparison (current list) and foreign key is activity name from act_subact relationship table.
Basically is the same setup as second field.
The issue is the following:
First field shows fine the list of the project names in the dropdown.
Second field activity populates fine when some project is selected in the first field.
Third field does not populate its empty when second field is selected.
What I need is to display the third field based on the previous two selections. In the above setup third field watches only activity field which might occur multiple times in the relationship table and cannot produce proper display.
I tried few things but non of them worked.
I believe the proper solution is to add the following in advanced under query clause but I am missing something since its not working.
comparison.project_name=act_subact.project_name
comparison is the current table containing the drop-down fields and act_subact is the relationship table.
Any advise or suggestion is much appreciated.
Thank you