Atlas UI and Mendix Studio bring a lot of features to the process of building an app. But what if you already have a Mendix app that looks great and runs smoothly? No problem! To get an existing Mendix app to work with Atlas UI and Studio, there are a couple of steps to follow. This how-to describes how to upgrade existing Mendix projects to Atlas UI.
This how-to will teach you how to do the following:
- Prepare your app for Atlas UI
- Replace the UI Framework module
- Replace existing navigation layouts
- Perform some optional actions
2 Replace the UI Framework Module
To get the full experience of Atlas UI, it’s necessary to import the Atlas UI Resources module. Every app includes a module called UI_Resources that can be found under Project > App Store modules in Studio Pro. This module contains all the layouts, page templates, and building blocks. The UI Framework folder in this module contains the old Mendix UI Framework content, which we will be upgrading to Atlas UI.
To replace the UI Framework, follow these steps:
- Delete the UI_Resources module.
- Download and import the Atlas UI Resources module from the Mendix App Store.
When the Atlas UI Resources module is downloaded from the Mendix App Store, it will be found in App Store modules:
After the import is complete, there may be some errors in the Error pane for navigation profiles or layouts that do not exist. Be sure to resolve all of these errors.
Once the Atlas UI Resources module is imported, all the new resources will be available in Studio Pro and Studio. When creating a new page, a new set of page templates for all devices will be available. In the Toolbox, a new tab will be added called Building blocks. You can drag building blocks from this pane onto your pages.
3 Replacing Existing Navigation Layouts
The Atlas UI Resources module comes with navigation layouts, which are required in order to use the page templates. If your existing navigation layouts are in a separate module, you will have to replace all the layouts for your pages with the Atlas UI layouts in order to make use of the new page templates. It is possible to keep using your old navigation layouts, but you will not be able to access the full capabilities of Atlas UI if you choose to do so.
4 Enabling Mendix Studio (Optional)
After you complete the previous steps, all the new Atlas UI features will be available in your app while it is running in Studio Pro.
But before your app can run in Studio, it is necessary to enable the Mendix Studio feature. This can be done in the Mendix Developer Portal through your app’s settings (app > SETTINGS > General).
5 Reusing Parts of Your Old Theme (Optional)
A lot of Mendix projects have a custom theme. If this is the case for your project, your old theme can be found in the Project Explorer folder named theme_old. The Atlas UI framework is similar to the Mendix UI Framework, so it is possible to reuse parts of your custom variables file.