Skip to content

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 MX Foundry app with a defined Object Service data model.

Before you start

Procedure

  1. Open Volt MX Go Iris. When the Sign-in to your account page appears, close it by clicking the Volt Iris home icon.

    Volt MX Go Iris icon

  2. Check Foundry settings.

    1. Go to Preferences.

      For Windows, select EditPreferences.

      For Mac, depending on your macOS, select Volt IrisPreferences or Settings.

    2. On the Volt MX Go Iris Preferences dialog, click Volt MX Go Foundry.

    3. On the Volt MX Go 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.

    4. Click Done.

  3. Log in to Volt MX Go Iris.

    1. Click Login on the upper right corner of the Volt MX Go Iris screen.
    2. Enter your email and password for Foundry on the Sign in to your account page.
    3. Click Sign In. Your username appears next to the profile icon.
  4. Connect to Foundry.

    1. Click the Data & Services tab menu and select Link to Existing App.

      Link to Existing App

      The Volt MX Go Applications dialog opens.

    2. Click Associate corresponding to a Foundry app that you want to link.

      Associate App

      In this example, the associated Foundry app is the First Touch Recipes app.

    3. Click Project Services on the Data & Services tab and see the connections to the Foundry data.

  5. Generate forms.

    1. Go to the Data & Services tab, and expand Project Services.
    2. Right-click the Object Service, and then select Generate FormsResponsive Web.

    Using the First Touch Recipes app as an example, right-click the FirstTouchRecipesObj and then select Generate FormsResponsive Web.

    Generate Form

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 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.

Generate Form

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 Foundry app DemoGA has the view Main.

Generate Form

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.

Generate Form