Data Hub Pane

Last update: Edit

1 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 Data Hub Catalog. In Studio Pro, this is possible using the integrated functionality of Data Hub Catalog through the Data Hub pane.

You can search in the Data Hub Catalog through the Data Hub pane to discover data sources that you can use in your project. 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:


2 Data Hub Pane in the Domain Model

The Data Hub pane is used to search the Data Hub Catalog for entities that can be dragged 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 Data Hub Catalog. The search will be performed on services, entities, attributes, associations, and descriptions in the Catalog.

  • Filter – By default, the search will be performed on assets in the Production environment. Click the Filter icon to Show development environments such as Test, Acceptance, and the Mendix Free App environment Sandbox in the search.

  • Search results – The search results displays all elements in the catalog that satisfy the search string. For each “hit” the information that is displayed includes the service name, service version, environment that the service was deployed to, and the elements matching the search string. If attributes or associations satisfy the search criteria, they are displayed. You can drag from the search results into your domain model and they are displayed as external entities:

Services and the entities that are currently being used in the current domain model are indicated with a green check-mark in the search results.

2.2 Data Hub Project Pane

When no search string has been specified in the Data Hub pane, the Project pane is displayed. This shows the consumed services and the external entities used in the current project. The list of entities, associations and attributes for the consumed services are shown as for the search results:

Project Section

To add entities to your project model, see Adding an External Entity to a Project.

As you enter a search term, all the items in the Data Hub Catalog satisfying the search string are listed in the search results. This will include words in the service, entity and attribute descriptions which are not displayed in the the Data Hub pane. Further information see the Data Hub Catalog asset details.

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

3.2 Service Environments

By default, the search will be performed on assets in the Production environment. To include all other environments such as Test, Acceptance, and the Mendix Free App environment, Sandbox in the search, click the Filter icon and check Show development environments:

Filter Icon

4 Information in Search Results and Project Pane

The following information is displayed.

4.1 Services

The search results and Project pane will show the following at a service level:

  • Service name

  • Application icon for the service (for example, Mendix, SAP, Siemens Teamcenter, or as shown in the screenshots above, custom icons)

  • Service version

  • Environment name for non-production environments

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

info on a Service
  • View in Data Hub Catalog – click this to go to the Data Source Details page in the Data Hub Catalog
  • Go to connection settings – click this to open the consumed OData service document

  • Blue Update Service icon to indicate that there is another version of the consumed service available in the Data Hub. Click to update the service that is consumed in the project to the contract that is now available:

    Data Hub Pane update

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

4.2 Entities, Attributes, and Associations

Entities, attributes and associations that satisfy the search string are listed in the search results.

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

Data Hub Pane Information

4.2.1 Entity

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

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

4.2.2 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.

Mulitple 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 model”

multiple associations

4.2.3 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 will take you to the attribute in the domain model.

In the above example, there are two attributes, Addresses and FavoriteColors which are not supported and therefore will not be included in your model:

multiple associations

5 Read More