The Pages section of the Knack builder is where you add visual elements, or Views, to work with your records. Views are collected onto Pages. Your users will begin on a start page and can navigate to other pages in order to access different views. Each page can have one or more views.
A view is a visual element that works with records in your database. These include:
-
Forms to add and update records
-
Tables, lists, maps, and calendars to display multiple records
-
Searches to find specific records
-
Details to view a specific record
-
Reports to view summaries and calculations of multiple records
-
Menus to link to other pages
-
RichText to display static content in your interface, like images and rich text
Pages
Your app starts with a single "Home" page, but you can add multiple pages to your Knack app:
To add pages to your live app, click the "+ ADD" button in the left column of the Pages section of the Builder:
You can view your pages in the live app by clicking on the View Live App button on the top-right corner of the page:
Once you add a new page, you can begin adding views to your pages.
Click here for more information on adding and editing pages in your app.
Views
Your interface begins with an empty start page. This is the first thing your users will see.
You will have to add views to your app pages so that your users can view data when accessing your app. For example, this page contains two tables, one to view Contacts, and another to view Proposal Stages:
Add your first view by selecting the view type from the top bar:
When you add a view, you'll pick a view type from the top bar, then you’ll select which object that view will work with:
Once added, you can click on a view to edit it and determine exactly what a user sees when seeing this view:
Click here for more information on adding and editing views.
Menus and Links
Now that you've added pages and views to your Knack app, you will need to create ways for your users to navigate between your app pages. Menus and Links are used to navigate between different pages in your app. Understanding how menus and links work is important for building a complex app of more than one page:
-
At the top is a Page Menu. This is a special menu that will display a link to each parent page, like your "Dashboard" page. You can control options for this menu by clicking the "Settings" icon link in the very top menu of your builder, then selecting the "Layout & Colors" tab.
-
Directly above the table is a link to "Add Company." This is a Menu View linking to a child page. On that page is a form to add a new company record.
-
In the table, itself is a Link Field to "view more details." Each of these links goes to a child page that displays more details about a specific company record. This is useful if you don't want to show every field as a table column, or show records connected to the company (see below).
Adding User Logins
Now that you have your pages and views setup, you may want to control who can view your app pages. If you have User Logins enabled, you can add logins to your app:
This means a user must log in before they can access any page:
Click here for more information on logins and registrations.
More Options
Showing Connected Records
With Knack, you can easily connect records. For example, you can set up your database so each Contact record is connected to a Company record.
Once you’ve connected your records, you can easily display them in your pages and views. For example, you may want to show all the Contacts connected to a specific Company:
Just click to add a view on any details or edit page and Knack will present you with options to show the connected records:
Knack knows that Contacts are connected to Companies, so you have the option of displaying those connected records with a view.