invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

Concepts

Invantive Control for Excel is an add-in for Microsoft Excel that turns a workbook into a real-time, two-way window on one or more databases and (cloud) applications. Data is retrieved with Invantive UniversalSQL queries and placed in the workbook; changes made in the workbook can be sent back to the connected platform.

Invantive Control for Excel is built around the following concepts:

  • Model: the definition of what data is exchanged between the workbook and the connected platforms, stored inside the workbook;
  • Block: a rectangular area in a worksheet that is filled by a query and optionally written back;
  • Column expression: a position-independent reference ($C{...}) to cells of a block, used in expression fields and SQL statements;
  • Parameter: a user-settable filter that restricts the data retrieved by blocks;
  • Extension: a script that extends the model with custom behaviour;
  • Pending change: a local change registered for upload to the facts database;
  • Synchronisation: the process of uploading pending changes and downloading fresh data;
  • Protection: the access password of the model, with which the workbook and its worksheets are protected and unprotected.

A diagram of Invantive Control for Excel: Excel, the add-in with fact and model databases, and Invantive Producer.

Roles

Invantive Control for Excel distinguishes two roles:

  • The modeler (model developer) designs the model: connections, blocks, queries, parameters and extensions. The modeller uses the Modeler ribbon and the model editor.
  • The model user opens the workbook, logs on, synchronises data, enters changes and uploads them. The model user only needs the Control ribbon.

A single person can fulfil both roles; in larger organisations they are often separated. The available ribbon buttons depend on the licence and permissions of the logged-on user.

Facts Database

The facts database is the central store of facts outside the Excel workbook: a traditional database such as Microsoft SQL Server, or a cloud application such as Exact Online. The workbook never becomes the system of record; it holds a snapshot of facts retrieved during the last download, plus pending changes awaiting upload. Access to the facts database always runs through Invantive UniversalSQL, so any platform with an Invantive driver can serve as a facts database. See Data Containers for how connections to one or more platforms are defined.

General Operation

The typical life cycle of an Invantive Control workbook is:

  1. The modeller creates a model in the workbook: defines blocks with their queries, parameters and layout, and publishes the workbook.
  2. The model user opens the workbook and logs on to the database.
  3. The model user downloads data through synchronisation; the blocks are filled with current facts.
  4. The model user edits values inside blocks; each edit is registered as a pending change.
  5. The model user uploads the pending changes; Invantive Control translates them into insert, update and delete statements on the facts database.

A flow diagram: the modeler develops a model, the user loads data, tracks changes and saves them to the database.

Recalculation and Caching

Values retrieved through Excel formulas are recalculated after logon, after synchronisation and on demand. Whether a formula reflects real-time data depends on the caching behaviour of the data container: on-premises databases such as Microsoft SQL Server are typically queried real-time, while cloud platforms such as Exact Online are typically served from an in-memory or Invantive Data Cache-backed cache to respect API rate limits.

Release Notes