I have a document which manages projects. Every project has a bunch of tasks. Those tasks are visible on my project table. Because of the complexity of the document and for UX purposes, I want to: Open the individual tasks from the project table, preferably on a modal.
FormulaMap(
All Tasks.Filter(Related Project=thisRow).Name,
All Tasks.FilterName=CurrentValue.Open Task)
)
What I have tried so far:
The closes action that I found it was Activate but is not available or I have not been able to implement. The other option that I found was to call a button field with Activate(thisRow) but itâs translated on my Project table to simple an Action text but it does nothing.
I have tried with Link but I donât think it can be used inside rows.
The reason Iâm not using a regular Lookup is that I have an Action that creates predefined tasks based on templates in another table, so Lookup row breaks everything that I use the Add Template button/action.
One way to accomplish this is to first run the button through a conversion to a referenced button inside of the source table, as then you can have it display anywhere.
In the shared example below, you will see that I have a separate column in my tasks table which uses the hidden formula Button() to rebuild my âActivateâ button. I then use that new column in my Projects table to show it as you want to.
I use this along with some extra complications for my daily task list (the magnifying glass activates the row and the checkbox completes it):
However, one important note if you end up displaying something on a canvas (as opposed to a table like you requested) that has an embedded button using the method above - it wonât work as a single click ends up sending two actions, one to modify the formula on the canvas and the other to push the button to activate the row. Therefore, I use this formula for my âActivateâ button: =list(activate(thisRow),_delay(activate(thisRow),100)) . The resulting âdouble-clickâ then causes the button to work in one click as you would expect. There is probably a better way to do this.
Say one has 2 views of the same table, and each have their own layout for the modal.
Is there anyway to grab the URL for this modal through a formula so it can be opened via a button rather than having to use the âexpand rowâ button provided by coda? Using thisrow.url() only ever gives the URL for the master table and not for the views.
Youâre hitting the strategy there with your answer. You can rely more on IDâs though than naming if that helps. Hereâs a post showing what youâre looking to accomplish. And yes, it is putting together the URL like youâve shownâŚ