Flow

The Flow Designer provides a design sheet for Micromine Geobank Administrators to build visual user interfaces such as forms and dialogs for users.

A Form is a configurable user-interface object that can be assigned to users, through a profile, to provide a front-end to database tables and views.

The Flow Designer provides advanced users with a more simplified method of creating forms.

Forms in the Form Designer are created using Python. Conversely, Flow Designer projects can be created in C# or Visual Basic; which provides additional user-friendly features such as scripting assistance and auto-complete.

You will be prompted to select the language when you first create the Flow project. Note: The language you select cannot be changed for the project after initialisation.

Note: It is possible to have many Flow forms in design mode at once, however because some of the internal resources are shared, if you see a red syntax error underscore under the Namespace in the Code pane, simply change the Namespace from ‘Flow’ to a unique name. This will allow running in debug mode, as well as scripting assistance to be displayed.

The Flow Designer contains a number of tools, containers and components that can be added to the visual interfaces. These are all accessible from the Toolbox and can be dragged and dropped into the design space and onto forms.

The properties of each control are visible and configurable in the Properties panel.

Note: Flow Designer layout is cached in C:\Users\<username>\AppData\Roaming\MICROMINE\Geobank with other layouts for Micromine Geobank. If the xml file for the layout is deleted, Flow Designer layout will be reset to default.

Recommended form planning and design steps

Since each Flow form will have a specific purpose, it is important to adopt a structured approach. It is recommended you take the following steps when you design and build a form:

  • Understand and document the business purpose of the form you wish to create
  • Identify what data needs to be accessed, both datasets and parameter data. This means considering the required:
    • Connection - All other data controls need a connection to know which database to interact with.
    • Table / Query / StoredProc - These objects tell the software how to interact (create/read/update/delete - CRUD) with the data from the connected database/source.
    • DataSet - A Data Set can be seen as the link between definitions (Query/Table/Proc) and Controls. A Data Set is required because at runtime the software needs access to an in-memory cache of data retrieved from a data source. Consequently, each ‘definition’ object must have an associated DataSet object so that other controls can access the data.
  • Decide on or build the data you will need access to from the form. You can set up views and table functions for access in the SQL Database.
  • Identify which data-related actions need to be initiated from the form.
  • Build your actions in the SQL Database as stored procedures. These can be generated from the form using the StoredProc component.
  • If the form will need to be deployed at multiple sites using change control, add to or create an "admin set-up" form which creates the SQL views etc (using action queries) for data access.
  • Plan the layout of the form. This might be best sketched out on paper (or in a digital design package if you prefer) and include the layout, tabs and other elements required.
  • Begin documenting the usage instructions for the form.
  • Build the form in the Micromine Geobank Flow Designer. See:
  • Test the form. This can be done using the Start Debugging option in the Toolbar.
  • Finish documenting the usage instructions for the form. These instructions can be incorporated as a tab within the form, if this adds to the overall usability.
  • Distribute and use the form.

See: Flow Designer