Create a new apps and models

With the Viindoo Customizer application, a system administrator extends the Viindoo Enterprise Management Software without writing code: add a field to an existing screen, create a model to store a new kind of record, or create a whole application around it. This article follows that path, from the smallest change to the largest.

Who

A system administrator: a user whose Role is Administrator.

App

Viindoo Customizer

Requirements

This tutorial requires the installation of the following applications/modules:

It also assumes you know how to open the Customizer. See Customize the existing interface.

Note

Every application is a module. A large, standalone module is usually called an application, and the other modules extend an application. A model is a table of information, such as Sales Order or Contact, made of fields. A new model and a new application are both stored inside the database, not as code.

Create a new field

Open a form or a list in the Customizer. On the Add tab, the New Fields tiles offer about twenty field types, such as Text, Multiline Text, Integer, Date, Selection, Many2one, Tags, Image and Related Field. A tile appears only when the model can use it: Monetary, for example, needs a currency field.

The Add tab of the Customizer on a sales order with the New Fields tiles highlighted

Click a tile, or drag it onto the canvas, to open the Create a new field dialog.

  • Click a tile: the Customizer places the field at the end of the last group of a form, or at the end of a list.

  • Drag a tile: the field goes where you drop it. You can move it afterwards.

Create a plain field

  1. In Field Name, keep the x_ that the box already contains and type the rest, without spaces, for example x_internal_remarks. The name of every custom field starts with x_.

  2. In Field Label, type the name that the people using the screen will see.

  3. Optionally, fill in Field Help, the hint shown when the user points at the field.

  4. To restrict the field to some groups from the start, choose them in Field access (all views). See The access rights in Viindoo customizer.

  5. Click Save, or Discard to cancel. The field appears on the canvas at once.

The Create a new field dialog with a name, a label and a help text, and the Field access (all views) box restricted to Sales Administrator

The Field Type follows the tile you clicked. For a Text field, the Translatable box lets each language have its own value.

Create a selection field

A selection field offers a list of choices.

  1. Click the Selection tile.

  2. Fill in Field Name and Field Label.

  3. Under Selection Options, click Add a line for each choice and fill in its Value, the stored code, and its Name, the text shown to users. Drag the handle of a line to reorder it. A selection field needs at least one option.

The Selection Options list of a new selection field with two lines, standard and express, and their names

Create a new model

A model stores a new kind of record, for example the delivery routes of an office furniture supplier.

  1. In the top bar of the Customizer, click New Model.

  2. In Model name, type the name without the prefix. The box already shows x_ in front of it, so delivery_route creates the model x_delivery_route. If the name is already used, a notice asks you to choose another one.

  3. In Model description, type the name that people will see, then click Configure Model. The button stays disabled until a model name is typed.

The Add New Model dialog with the New Model button of the top bar highlighted, the name delivery_route, the description Delivery Route and the Configure Model button highlighted

The Suggest features for new model dialog opens. It has three parts.

View Active

Tick the views to generate: Form View, List View, Pivot View and Graph View. Form View and List View are ticked by default. Learn more about views in Introduce about fields, widgets and views.

Model Templates

Templates add ready-made fields and behavior, so that you do not build them one by one. You can combine several templates.

Contact details

Adds a contact, a phone number and an email to the records.

Company

Restricts each record to a company. A record without a company stays visible to every company.

Chatter (ticked by default)

Lets users send messages, log notes and schedule activities on a record.

User assignment

Assigns a responsible user to each record.

Date & Calendar

Adds start and end dates.

Pipeline stages

Moves records through the stages of a custom pipeline.

Tags

Categorizes records with custom tags.

Picture

Attaches a picture to a record.

Lines

Adds an embedded list of detail lines to a record.

Notes

Adds a field for additional notes.

Monetary value

Adds a price or a cost.

Custom Sorting (ticked by default)

Lets users sort records manually in the list view.

Archiving (ticked by default)

Adds an active flag to archive records instead of deleting them.

Untick the templates you do not need.

The Suggest features for new model dialog with the View Active boxes and the Model Templates highlighted

Access Rights

Scroll down to the Access Rights part. Click Add a line, choose a user group, then tick what the group may do with the new model: Read Access, Write Access, Create Access and Delete Access.

The Access Rights part of the Suggest features dialog with the group Sales Administrator and the four access boxes ticked

Administrators always have full access to a new model. See The access rights in Viindoo customizer to change the access rights of a model later.

Click Create Model, or Back to return to the first step. The Customizer opens the list of the new model, and adds a menu item for it to the menu of the app you were editing.

Lay out the form of a new model

The Components tiles of the Add tab structure the form of a model:

  • Notebook: a set of pages shown as tabs.

  • Group - Two Columns and Group - One Column: a block of fields in two columns or in one.

Drag a tile onto the form. Select a notebook page or a group to rename it in Label and to choose who sees it with Limit visibility to groups and Forbid visibility to groups. Then add fields with the New Fields tiles, as above.

The form of the new model in the Customizer with the Components tiles highlighted and a notebook page named Stops

Click Close in the top right corner to leave the Customizer.

Create a new application

An application groups menus under one icon of the app menu. The wizard creates the application and its first menu.

  1. In the top bar of the Customizer, click New App. The button is there on every screen of the Customizer, including its landing page.

  2. On the welcome page, click Start now.

    The welcome page of the new application wizard with the Start now button highlighted and New App highlighted in the top bar
  3. Type the name of the application and design its icon: choose the colors and the picture, or click Upload Icon to use your own image. Click the right arrow to continue.

    The Create your App page with the application name and the icon designer with the Upload Icon button
  4. Type the name of the object of the first menu, then choose what the menu opens:

    • New Model: the Customizer creates a model for the menu. It opens the Suggest features for new model dialog described in Create a new model.

    • Existing Model: the menu opens a model that already exists. Choose it in Model.

    The Create your first Menu page with the Existing Model choice and the model Delivery Route highlighted
  5. Click the right arrow to finish. The application appears in the app menu with its name and its icon, and its menu opens the list and the form of the model.

To carry a new application or model to another database, see Export and import customizations. If something does not work as described here, see Troubleshooting and FAQ.