Data Hub Pane

Last modified: September 19, 2024

Introduction

Mendix Data Hub enables integration of available data sources from the different applications in an organization into your Mendix apps. This means that new apps can be created using shared datasets that are registered in the Catalog. In Studio Pro, this is possible using the integrated functionality of Catalog through the Data Hub pane.

You can search in the Catalog through the Data Hub pane to discover data sources that you can use in your app. Via this pane you can add the entities that are exposed in the registered OData services—called Data Sources in Data Hub—into your app’s domain model. These entities are called external entities and are different because they enable the connection to the data associated with the entities in the originating app.

To display the Data Hub pane, click View > Data Hub.

Data Hub Pane Overview

The Data Hub pane is used to search the Catalog for entities that can be dragged into the domain model and used in your app and also display the external entities and the associated services that are consumed in your current model.

The following functionality is available in the pane:

  • Search – Enter a search string of alphanumeric characters to search in the Catalog. The search will be performed on services, entities, attributes, associations, and descriptions in the Catalog.
  • Filter – By default, the search is performed on assets in the Production environment. Click the Filter icon to include all other environments such as test, acceptance and also the Mendix free app environment Sandbox in the search.
  • View information on the service, its entities, attributes, and associations – When you enter a search term and browse through services, you can view various information on them.
  • View services used in your app – Services and the entities that are currently being used in your app are displayed in the Used in your App section and are indicated with a green check-mark in the search results. For more information, see the Used in Your App section below.

Used in Your App Section

When you do not enter search text in the Data Hub pane, then Used in your App section is displayed. This shows the consumed services and the external entities used in the current app. The list of entities, associations, and attributes for the consumed services are shown as for the search results:

User in Your App Section

For more information on how to add entities to your app, see Adding an External Entity to an App section in External Entities.

As you enter a search term, all the items in the Catalog satisfying the search string are listed in the search results. This includes words in the service, entity and attribute descriptions, which are not displayed in the Data Hub pane. For more information, see the Selected Asset Details section in Search in the Catalog.

You can drag the entity from the search results into your domain model and it will be added to your app and displayed as an external entity.

You can perform a wildcard search by entering * in the search field.

Filtering Environments

By default, the search is performed on assets in the Production environment. To include all other environments such as test, acceptance, and also the Mendix free app environment, Sandbox in the search, click the Filter icon and check Show development environments:

Filter Icon

Data Hub Pane Information

The information that is displayed in the Data Hub pane either when you enter a search term or when you open the Used in your App section is described in the sections below.

Services

The search results and User in your App section show the following information at a service level:

  • Service name

  • Application icon for the service (for example, Mendix, SAP, Siemens Teamcenter, or custom icons)

  • Service version

  • Environment name for non-production environments

  • Green check-mark if the service or entity is consumed in the app. If you right-click a consumed service, you can do the following:

  • Gray shield icon shows if the service or entity is validated in the Catalog

  • Update icon is a blue arrow icon that indicates that there is another version of the consumed service available in the Data Hub. Click to update the service that is consumed in the app to the contract that is now available:

    Data Hub Pane update
  • Information icon allows you to view further details for the service and a link to go directly to the Service Details screen in the Catalog:

    Data Hub Pane Information

Entities, Attributes, and Associations

Entities, attributes, and associations are displayed under the service name.

For any service in the list, you can click Show details to see the full list of the exposed entities, associations, and attributes for that service.

Data Hub Pane Information

Entity

If you right-click an entity and select View in Catalog, it will take you to the entity details page in the Catalog.

If you right-click a consumed entity and Go to entity, it will take you to the entity in the domain model.

Associations

The associations that are exposed in the services are listed before attributes in alphabetical order. You can click on the + to see the entity that the association is with.

Multiple associations between the same entities are shown before single associations.

In the following example the entity Customer has multiple associations with the entity Order however, these associations are not supported and cannot be used in your app:

multiple associations

Attributes

Attributes for a service are listed in alphabetical order. If you right-click an attribute of a consumed entity and Go to attribute, it takes you to the attribute in the domain model.

Unsupported attributes are grayed out and are not included in your app.

CRUD Capabilities

If the entity, association, or attribute supports Create, Read, Update, or Delete capabilities and it is also supported by Studio Pro, then it is displayed in the Data Hub pane. Entities and associations can have any of the CRUD capabilities, while attributes can only have create and update. For more information on CRUD capabilities, see Write Data to Another App.

Read More