Generate CRUD forms for Object Service
About this task
The procedure guides you in generating CRUD forms and associated form-navigation links for an Object Service after linking your Volt Iris project to your Volt Foundry app with a defined Object Service data model.
Before you begin
-
You have created an app in Volt Foundry.
-
You have configured an Identity Service for your app in Volt Foundry.
-
You have added an environment for your app.
-
You have configured an Object Service for your app in Volt Foundry.
-
You have created a project in Volt Iris.
Procedure
-
Open Volt Iris. When the Sign-in to your account page appears, close it by clicking the Volt Iris home icon.
-
Check Volt Foundry settings.
-
Go to Preferences.
For Windows, select Edit → Preferences.
For Mac, depending on your macOS, select Volt Iris → Preferences or Settings.
-
On the Volt Iris Preferences dialog, click Volt Foundry.
-
On the Volt Foundry tab, enter your Foundry URL in the Foundry URL text box, and then click Validate.
You should see the “Validation Successful” message at the top of the dialog.
-
Click Done.
-
-
Log in to Volt Iris.
- Click Login on the upper right corner of the Volt Iris screen.
- Enter your email and password for Volt Foundry on the Sign in to your account page.
- Click Sign In. Your username appears next to the profile icon.
-
Connect to Volt Foundry.
-
Click the Data & Services tab menu and select Link to Existing App.
The Volt MX Go Applications dialog opens.
-
Click Associate corresponding to a Volt Foundry app that you want to link.
In this example, the associated Volt Foundry app is the First Touch Recipes app.
-
Click Project Services on the Data & Services tab and see the connections to the Volt Foundry data.
-
-
Generate forms.
- Go to the Data & Services tab, and expand Project Services.
- Right-click the Object Service, and then select Generate Forms → Responsive Web.
Using the First Touch Recipes app as an example, right-click the FirstTouchRecipesObj and then select Generate Forms → Responsive Web.
Note
Summernote Editor is automatically applied on Rich Text fields when generating entry forms (CREATE/UPDATE) from the data panel. Summernote Editor is a simple WYSIWYG editor that allows a developer to enter or edit rich text content in a Rich Text field in a form in Volt Iris. For more information, see Summernote Editor.
Expected result
Five types of forms (Dashboard, Grid, Details, Create, and Update) are generated for each object in the Object service with the respective navigation links among each other.
The Dashboard form displays all the objects of the selected Object service. Users can navigate to the respective Grid, Details, Create, and Update forms from the Dashboard screen. If you haven't defined the startup form of the app, the Dashboard form is made the startup form by default.
If your Object Service has views, they're also generated. In the example, the Object Service DemoGAObjectService of the Volt Foundry app DemoGA has the view Main.
After the process, there are two types of forms (Grid and Details) for the view Main, and five types of forms for the object Recipe.