PROBLEM
Suppose you want to filter a view of a table according to which row is currently selected in a view of another table You might think you could do something like:
view of projects.filter(thisrow.client = view of clients.selectedrow)
Alas, as of May 2024 it seems Coda does not support anything like “selectedrow”
Below is a workaround:
METHOD
Summary: Use a button to set the value of a selector to the current row in the main table, then filter the detail table by the selector and hilight the row in the main table that matches the selector.
Master table , Detail table Add a select control to the canvas Create button column that when pressed sets the control value of the selector to the current row, with alert shown only for errors Create the user interface create view of the master table conditionally format the master table to hilight the row that matches the select control create view of the detail table filter the detail table by the select control hide columns, etc. in your views optionally, you can hide the selector elsewhere USER INTERFACE (USING TABLE VIEWS)
Projects
ORIGINAL DATA TABLES