Using Marketplace Content

Last modified: April 24, 2024

1 Introduction

This how-to covers the basics of accessing the Marketplace from Studio Pro and provides examples of how to add a widget and a module to your application.

This how-to teaches you how to do the following:

  • Download content from the Marketplace via Studio Pro
  • Use content (for example, modules) downloaded from the Marketplace in Studio Pro

2 Installing Marketplace Content

There are three ways to install a Marketplace component, which are described in the sections below.

2.1 Finding and Downloading Content in Studio Pro

2.1.1 For Studio Pro 9.19 and Above

To download content in Studio Pro 9.19 and above, follow these steps:

  1. Open Studio Pro and sign in with your Mendix credentials.

  2. Open the app in which you want to install the component from the Marketplace.

  3. To open the Marketplace in Studio Pro, you can either click the View menu in the top bar and select Marketplace, or you can click the Marketplace icon on the right side of the top bar

    Marketplace icon

    The Marketplace pane opens.

    Search result for rating
  4. You can explore Marketplace content in the following ways:

    • Use Search in the Marketplace to find the component that you want to download
    • Filter via the Categories and Subcategories drop-down menus, which correspond to the Marketplace content types
    • Filter for All Content, My Company Content, or Platform-Supported Content
  5. Select a component from the pane to see its details:

    Details of Blank App example component

    The details presented here correspond to what you see on the component details page in the online Mendix Marketplace.

  6. Click Download to download the component. The correct version of the component that is compatible with your Studio Pro version is integrated directly into your application (for widgets, version compatibility is not applicable). By default, the highest correct version of the component is downloaded. If you want to download an older component version, go to the Releases tab and click Download for the desired version.

  7. Depending on whether the component is a widget, a module, an extension, (which is a special type of module), or an app, go to one of the sections below:

2.1.1.1 Widgets

If you download a widget, a pop-up window states the module was successfully imported. Click OK, and you can find the imported widget in the Toolbox.

2.1.1.2 Modules

If you download a module, the Import Module dialog box opens, where you should perform the following steps:

  1. Select one of these options:

    • Add as a new module (default option when the module is downloaded to your app for the first time ) – if you select this option, new entities and attributes are created in your app.

    • Replace existing module (default option when the module already exists in your app) – if you select this option, you need to specify which Module to replace

  2. Click Import.

  3. Wait until a pop-up window states that the module was successfully imported. Click OK. You can find the imported module in the App Explorer.

2.1.1.3 Extensions

If you download an extension, a warning dialog box opens.

  • If you trust the extension, click Trust module and enable extension.

  • If you decide to not trust the extension, you will get asked whether or not to trust the extension every time you reload the application.

Click OK in the confirmation pop-up window. Your extension is now installed and is ready to use. Depending on the extension that you have installed, the functionality appears in a certain location of your app. Read the extension-specific documentation to get more information on how to use it.

If you do not want to trust the extension and would prefer to remove the extension altogether, you can remove the add-on module that was added.

trust extension
2.1.1.4 Apps

If you download an app, the Download Marketplace App dialog box opens, where you should perform the following steps:

  1. Select where the app should be stored: New Mendix Team Server, Existing Mendix Team Server, or Locally on disk.

  2. Configure the necessary settings based on your storage choice.

  3. Click OK.

    After the app is downloaded, it opens automatically in Studio Pro.

2.1.2 For Studio Pro 9.18 and Below

To download content in Studio Pro 9.18 and below, follow these steps:

  1. Open Studio Pro and sign in with your Mendix credentials.

  2. Open the app in which you want to install the component from the Marketplace.

  3. Click the Marketplace icon in the top menu bar to open it in Studio Pro. The Marketplace opens within Studio Pro. The Categories menu item on the left side gives an overview of which types of content are available.

  4. Use the Search bar to find the component that you want to download. Note that results for Marketplace content searches within Studio Pro may differ from those in the online Marketplace due to synchronization issue.

  5. Click the component (or the Read more button on the right side) to show the details of the component.

  6. Click Download to download the component. The correct version of the component that is compatible with your Studio Pro version is integrated directly into your application (for widgets, version compatibility is not applicable). By default, the highest correct version of the component is downloaded. If you want to download an older component version, go to the Releases tab and click Download for the desired version.

  7. Depending on whether the component is a widget, a module, or an app, go to one of the sections above:

2.2 Importing Content from Studio Pro’s App Explorer

To import content downloaded from the online Mendix Marketplace into Studio Pro, follow these steps:

  1. Go to the Marketplace and sign in with your Mendix credentials.

  2. Search in the online Marketplace for the component you want to download and open the component details page.

  3. Check Usage > Version to see the required Studio Pro version for the component. Do not download a component that requires a higher version than the one you are using.

  4. Click Download to download the latest version of the component. Or, if you want to download an older component version, go to the Releases tab and Download the desired version.

  5. In the App Explorer, right-click the app, then click Import module package, and select the component you downloaded:

    import-module-in-app-explorer

    The Import Module dialog box opens.

  6. In the Import Module dialog box, select one of these options:

    • Add as a new module (default option when the module is downloaded to your app for the first time ) – if you select this option, new entities and attributes are created in your app

    • Replace existing module (default option when the module already exists in your app) – if you select this option, you need to specify which Module to replace

  7. Click Import.

  8. Wait until a pop-up window states that the module was successfully imported. Click OK.

You can find the imported module in the App Explorer.

2.3 Manually Adding Content into App Directory

To manually add content downloaded from the online Mendix Marketplace into Studio Pro, follow these steps:

  1. Go to the Marketplace and sign in with your Mendix credentials.
  2. Search in the online Marketplace for the component you want to download and open the component details page.
  3. Check Usage > Version to see the required Studio Pro version for the component. Do not download a component that requires a higher version than the one you are using.
  4. Click Download to download the latest version of the component. Or, if you want to download an older component version, go to the Releases tab and Download the desired version.
  5. Open Studio Pro and sign in with your Mendix credentials.
  6. Open the app in which you want to install the Marketplace component.
  7. On the menu bar, click App > Show App Directory in Explorer. The app directory opens.
  8. Add the component into the app directory as follows:
    • If it is a widget, add it into the widgets folder
    • If it is an .mxmodule file, add it into the modules folder (you need to create this folder if it does not already exist)
  9. On the menu bar, click App > Synchronize App Directory.
  10. Wait until the synchronization is finished.

You can find the added widget in the Toolbox or the added .mxmodule in the App Explorer.

3 Using Content in Studio Pro

After you download a component, you can use the component in your app. For detailed information on how a component works, check the Documentation tab on the page of the component in the Marketplace.

3.1 Using a Widget

3.1.1 Adding the Widget to a Page

After you install the widget from the Marketplace in your app, there are two ways to add the widget from the Marketplace via Studio Pro.

To add a widget from the Toolbox, follow these steps:

  1. Open the page where you want to add the widget.

  2. In the Toolbox, search for the name of the widget (for example, Rating to find the widget):

    Rating widget found in the toolbox
  3. Drag the widget to the place on the page where you want it to be.

To add a widget using the Add widget option from the toolbar, follow these steps:

  1. Click Add widget on the toolbar on the page where you want to add the widget. The Select Widget dialog box opens.

    Add widget
  2. In the Filter bar, enter the name of the widget, for example Rating, to find the widget.

    Rating widget highlighted in Select Widget dialog box
  3. Click the widget and then click Select.

  4. In the page, click where you want to drop the widget. The widget is added to the location where the mouse pointer is.

    Rating widget in the page

3.1.2 Updating the Widget to a Newer Version

To update the widget in your app to a newer version, go to the Marketplace to download the right version, and install it in your app.

3.1.2.1 Maintaining Added Translations in a Widget to Update

In the scenario where you have an app with multiple languages in which you need to update an imported Marketplace widget that only comes with one language and where you have manually added translations for the additional languages you need, you can maintain the additional translations by following these steps:

  1. Maintain the translations for the widget by exporting them to Excel.
  2. Update the widget via the steps described above.
  3. Import the maintained translations from the Excel.

3.1.3 Configuring the Widget

After you place the widget in your page, some new errors can appear in the Errors pane. That is because you still need to configure the widget. In this procedure, the Ratings widget is used as an example.

To configure the widget, follow these steps:

  1. Go to the Errors pane and check the error message. This error shows after you drop the Rating widget into the page:

    Errors pane
  2. In the page, double-click the Rating widget. The Edit Rating dialog box opens and the Attribute field shows (none) – this means that no attribute is assigned, which causes the error.

    Edit Rating dialog box
  3. Click Select to select an attribute. In this example, we select the attribute ProductRating. This is the attribute of an entity that we already created.

    ProductRating selected in Select Attribute dialog box
  4. In the Edit Rating dialog box, click OK. The error in the Errors pane disappears.

3.2 Using a Module

After you install a module in your app, you can use it.

A module downloaded from the Marketplace has a light blue icon to differentiate it from the development modules.

3.2.1 Updating the Module to a Newer Version

To update the module in your app to a newer version, follow these steps::

  1. Before downloading the newer version, remove all the Java libraries that are only used by this module from the userlib folder in your app directory. Java libraries are accompanied by a blank [Module].RequiredLib file. This will help you identify by which module the Java libraries are used. Doing this prevents you from ending up with having conflicting Java libraries which cause unexpected issues.

  2. Go to the Marketplace to download the right version and install it in your app. When the Import Module dialog box opens, select Replace existing module and click Import.

    Import Module dialog box
  3. Check the userlib folder in your app directory for duplicate Java libraries. If your userlib folder contains multiple versions of the same Java library, it is usually safe to delete the old ones and keep only the new one.

3.2.1.1 Maintaining Added Translations in a Module to Update

In the scenario where you have an app with multiple languages in which you need to update an imported Marketplace module that only comes with one language and where you have manually added translations for the additional languages you need, you can maintain the additional translations by following these steps:

  1. Maintain the translations for the module by exporting them to Excel.
  2. Update the module via the steps described above.
  3. Import the maintained translations from the Excel.

3.2.2 Configuring the Module

Each module that you download from the Marketplace is different. Some modules can cause errors because they are connected to other modules. For example, after you download the Database Replication module, you also need to download the Mx Model Reflection module to accomplish the configuration. If you run into any problems, always check the Documentation tab on the page of this module in the Marketplace for installation guidelines and details on any dependencies.

Keep in mind that some modules you can download may come with their own user roles. If the Security level of your app is set to Prototype/demo or Production, you need to map the module roles to the applicable user roles in your app.

3.4 Using a Starter App

Downloading a starter app (via Create New App) creates a new app structure in the storage location that you select. After you click Download, a window will appear where you can specify how the app should be created.

4 Deleting Marketplace Content from Your App

To remove a widget from your app, follow these steps:

  1. In Studio Pro, go to App > Show App Directory in Explorer on the menu bar to open the app directory.
  2. Go to the widgets folder.
  3. Remove the .mpk file for the widget.
  4. In Studio Pro, go to App > Synchronize App Directory.

To remove a module and user data from your app, follow these steps:

  1. In the App Explorer, find the module that you want to delete.

  2. Right-click the module and select Delete from the pop-up menu. A warning pop-up window opens.

  3. When you are sure that you want to delete the module and existing user data, click Delete module and user data.

5 Read More