How to Add a Details Page to a Table
Step 1: Enter Edit Mode
Make sure you are in edit mode.
Step 2: Create a New Page
- Open the Developer Toolbox.
- Click on Pages.
- Click on Add Page.
- In the Page Name field, enter:
Employee Details. - In the Page Route field, enter:
employees/:id. - Click Save.
Step 3: Add a Form to the Page
- Go back to the Developer Toolbox.
- Click on the Add button (plus icon).
- Find Form in the list of components.
- Drag and drop the form onto the page.
Step 4: Bind Data
- Go to table Settings
- In the Table name drop down menu choose _Users table
- In the Record ID textbox type in :id
- Click Save
Because the page Record ID is set to :id, the form will now automatically detect and load the correct data from the _Users table once it is added.
Info: The Link to details page step is only needed when the entity name does not match the page route. In this example, we are using the system table _Users, but our page route is employees - so they do not match.
To fix this, go to the table Settings, find the Link to details page field, and enter employees. If your page route already matches your entity name, you can skip this step.