You’ll need a table that will define the buttons in the view. Let’s call it Menu Table.
Menu Table will need a column to contain the text for the menu button. Let’s call it Button Name. This column should be the AppSheet table’s label column.
We’ll also need a column–let’s call it Button Form–to identify the name of the form to which the user should be taken when clicking on the button. This column should be the AppSheet table’s key column.
Create the worksheet for Menu Table and populate it with appropriate data.
Add the worksheet as a table to your app (Data > Tables). Name the table Menu Table (as mentioned above). The table should be read-only; disable adds, updates, and deletes.
Configure the table’s columns (Data > Columns) appropriately, especially with regard to identifying the label and key columns indicated above. Save your changes.
Create a view (UX > Views) for the table (the app editor may have already created one for you when the table was added). For view type, choose either Deck, Gallery, or Table, as desired. Save your changes. Choose a position for your view that will make it visible (i.e., not ref).
Create a new action (Behavior > Actions) with the following settings:
-
For For a record of this table, select Menu Table.
-
For Do this, choose App: go to another view within the app.
-
For Target, enter [Button Form].
Take note of the name of this new action. Save your changes.
Go to the configuration for the view you created above, down to the BEHAVIOR section. For Event Actions, for Row Selected, choose the action you created above. Save your changes.
Using your app, navigate to your new view. When you click on an item, you should be taken to its associated view.