I’m hoping to have a table with 2 buttons each row. “VIEW” & “MODIFY” with the only difference is one’s editable one’s not.
I figured out how to show/hire columns or use different layout, but scratching my head trying to find a way to prevent editing, and can’t find any related post here.
With recent released sync pages, you can make the whole page readonly with no edit whatsoever.
Thanks for the hint, maybe I used wrong keyword to search
Formular sounds like awful lot of duplication, I think all these formular columns will be added to the source table rather then a “Display only column”
I stumbled on page locking which seems to do this in a somewhat way, but haven’t got my hear around the mechanism yet
Yeah you can use page locking as well. It’s a little wonky too but here’s how you do it:
Create 2 pages: Read Only and Edit page
You can create 1 layout and you can use both for the Read Only and Edit
Add views to the both pages
Set the Locking to “read only” on the Read Only page
You can use the default open row functionality on both views to the open the rows if you want, or you can create buttons
You do have the issue of when you’re on the read only view and now want to edit. While it would be nice to click a “Edit” button and it sends the user to the Edit page/view and opens the layout this doesn’t work as you’d expect. It will actually open which ever layout is on the Edit page/view but will remain on the Read only page and inherit what ever Locking settings you have on the Read only page. So the user still can’t edit the row in this layout. I believe this to be a bug (and have filed it with Coda).
So in this case you may need to create 2 different button sets, 1 for each view: Read View Button Set
Read button opens the row in the read view layout
Edit button forces a new browser window tab and takes them to the Edit layout for the row
Edit View Button Set
Read button forces a new browser window tab and takes them to the View layout for the row