Create a page to edit a row

Hello all,

I am a little confused with how to do the above.

I have a database that contains a table called Appliances and I would like to have a link in each row that takes the front end user to a page with a single row where that row can be edited, this page will be at /edit-entry/.

In Application Builder, I have a page with a data source that loads the Appliances table and I have added a ‘Edit’ link in the form of a button in the last column of the table, like this:

This links to another page /edit-entry/ that I have created, with the parameter :asset_id in order that it pulls the row corresponding to the ‘Edit’ button. I don’t fully understand how this parameter ‘knows’ to link to the row identifier, if I am honest and I am unsure what I need to enter in the asset_id field, but I think what I have there makes sense.

If I look at my /edit-entry/ page settings, I have this under Page Settings:

I add a data source there like this:

Then I add a Table Element to the page, and go to the sidebar to configure it, and this is what I have there:

I have added the single row data source in the top right dropdown, but I don’t know what i need to do from here.

Any guidance would be much appreciated.

Thanks,

Nick.

Ah, I have figured it out - will post what I was doing wrong and how I fixed it later in case it can help others.

1 Like

Thank you—that would be very useful if you could share how you fixed it, @spa_nick. :raised_hands:

OK, I feel a little stupid!

I was thinking I needed to load a table to edit it when I should have been loading a form!

User error, but all going well now - I love Baserow :heart_eyes:

1 Like