Reposting from @419:
cc @connormccormick83
Reposting from @419:
cc @connormccormick83
Not sure on the first one without an example/screenshot.
For the second one, you can link to a document and get its stub for formulas. To do so, your table needs a link to the document, and then you can use concatenate() to strip all rich text information.
The formula used for the stub column is
=concatenate(thisRow.Page)
Hope this helps! (edit: without being able to link to a specific bookmark / header, there’s not currently a way to extract those unique IDs on the URL’s hash AFAIK)
I actually don’t have an example, was just trying to think of a question that I haven’t already had answered by the team in a private chat.
The request could be translated to “instead of setting conditional formatting at a Table level, could a conditional formatting modal be initiated when adding a trigger call to a cell?”
For example, if I type “##” then the conditional formatting menu could pop up when editing a formula. This may be more useful than the original question.
@jakobheuser Thank you for the reply! Follow-up questions:
@419 A stub is just a slang term for the URL fragment attached to a section in coda (maybe there’s an internal name for it?)
The anatomy of a Coda URL looks like this. note: reverse engineering, not guaranteed to be accurate, but it’ll at least be close
https://coda.io/d/<document>/<section>#<bookmark>
While we can’t get the unique ID for the document yet, we can get it for the section. This means we can create links to sections with our own custom text, overriding Coda’s default behavior.
The final column is a custom hyperlink that uses the stub and builds a new URL, setting the text to another column.
Right now, this is just a cool way to get at the section URLs and mutate them, but it’s one step closer to accessing the value at a specific bookmark location. Some uses of this pattern I can think of
Great questions!
For the first one, this is a way to conditionally format a cell using a formula that references the values in other cells:
Is that what you’re looking for?
@jakobheuser Thank you for the detail!
@cnr Much appreciated! That will help for the time being
@jakobheuser I’m curious why you thought about using concatenate()
to get the rich text from the link? The first formula I thought about was toText()
so in your example, the formula would be =thisRow.Page.toText()
.
Based on your example wouldn’t the unique ID for the document be d7hhhhhhbWl? Seems like we can do some regex work and search for the string after the first underscore up to the slash (before the section is printed in the URL).
Hey @Al_Chen great questions.
RE concatenate, I ended up using concatenate()
because I knew it would strip the information (from a prior experiment). toText()
is certainly a cleaner option!
Regarding the ID of d7hhhhhhbWl
I can manually get it from the URL, but it would be much easier if there was an option like thisDocument.documentId()
we could call to get the information. My guess is that such APIs and data will show up once the coda team has a better idea of how they want to do cross-document linking.
I’m trying to create a central table for document classification and then call values from this table to classify documents. I was thinking that the ability to cross link documents was already in place but after reading this topic I’m starting to think that it doesn’t exist at all.
Has anything changed since this conversation ended?