Views
I have a PROJECTS table with 2 subtables CONTRACTS and SOLUTIONS.
I would like to show a View in SOLUTIONS, showing the CONTRACTS - but only the ones related to the current PROJECTS
How do I write the code in the View.....: select "and then what"
Any ideas?
3 replies
-
JJ,
let me := this.PROJECTS;
select CONTRACTS where PROJECTS = me
Steven
-
Excellent Steven, thanks
/ John
-
Since there are relations in place between the tables, it should be possible to fill the view by navigating those relations instead of resorting to the almighty 'select' function. From "SOLUTIONS", one can navigate "up" (N:1) to the corresponding record in "PROJECTS", and then "down" (1:N) to the records in "CONTRACTS". The formula to fill the view - if the reference fields have not been renamed - would then be:
PROJECTS.CONTACTS
Content aside
- 3 yrs agoLast active
- 3Replies
- 223Views