Enterprise Application Development

Fast Modeling, Responsive Design, One-Button Deploy

BOOK a Demo

Economic theory-based business modeling

Resources, Events, Agents

BOOK a Demo
OMNIA – Low-Code Business Application Development Platform

New Feature: Open a Entity inside a Modal
Posted March 11th, 2021

New Feature: Open a Entity inside a Modal
Posted March 11th, 2021

Note: This feature was released with version 3.4.109 of the OMNIA Platform

A common scenario when using web applications is the need to view additional information without losing the main content of the page.

Common use cases are the visualization of additional details of a document/entity or further details on complex errors or validations. The same logic also applies for confirmations required for some procedures, such as user agreements.

It’s with this thought that we developed our latest feature: opening entities inside modals.

Instead of checking extra details in containers or even with navigation links to new tabs, it is now possible to open a specific entity in a division apart from the main content with a click on a configurable button or even after a certain behavior.

So, you must be wondering does this magic happen? It’s all done and configured in User Interface Behaviours, with JavaScript code like the following example:

const modal ={
    name: "CustomerDetails",
    type: "Dashboard",
    parameters: {
        customer: this.customerName
    },
    size: "large"
};

this.context.openModal(modal); 

In the example above, it’s instantiated a new object with four properties:

  • “name”: the code of the entity that will be opened;
  • “type”: the entity type;
  • “parameters”: properties to be used on the modal (e.g. to retrieve data or format the UI);
  • “size”: the dimension of the modal to be opened.

After that, to open the modal simply use the “openModal()” function inside the context.

There are plenty of other properties that you can configure for the modal that are really useful in the low-code perspective! Find out more in our documentation.

The available sizes are:

Small

Medium

Large

Extra-Large (default)

Currently this feature only supports the opening of Dashboards on modals, but don’t worry, additional possibilities are already in the works. Stay tuned for more news! 😉

Here’s our official documentation page, if you want to see all the information about this new feature.

We hope you’ve enjoyed this new and improved way of selecting references in OMNIA grids, if you have any suggestion feel free to let us know, feedback is, as this new feature helps demonstrate, always welcome.
If you still don’t have this feature and want to start using it, remember to update your OMNIA platform to version 3.4.109.

Platform Update and Documentation

This new feature is part of our 3.4.109 version of the platform.

📄 Documentation

✉ Signup for our Newsletter to get our weekly news