Creating HCL Domino-Connected Applications in Unqork

Ready to get started?

Learn more about CData Connect Cloud or sign up for free trial access:

Free Trial


You can use CData Connect Cloud to feed HCL Domino data to Unqork and build custom business apps.

Overview

You can use CData Connect Cloud to feed HCL Domino data to Unqork. From there you can build custom business applications in a visual, drag-and-drop interface. So, how does this process work?

Unqork is a completely visual, no-code application development platform that helps large organizations build complex custom software. CData Connect Cloud exposes HCL Domino as a REST endpoint, which you can then query from Unqork with simple HTTP requests. This enables you to create your own custom application with HCL Domino data.

What You'll Learn

In this article, you'll learn how to:

  • Add a CData Connect Cloud user
  • Add a Personal Access Token for the Connect Cloud user
  • Connect to HCL Domino from Connect Cloud
  • Add HCL Domino OData endpoints in Connect Cloud
  • Register HCL Domino (via Connect Cloud) as on Unqork service
  • Create a simple Unqork application to display HCL Domino data

Connect to HCL Domino from Unqork

To work with live HCL Domino data in Unqork, you need to:

  • Connect to HCL Domino from CData Connect Cloud
  • Provide user access to the new connection in CData Connect Cloud
  • Create OData endpoints for HCL Domino data

(Optional) Add a New Connect Cloud User

As needed, create Users to connect to HCL Domino through Connect Cloud.

  1. Navigate to the Users page and click Invite Users
  2. Enter the new user's email address and click Send to invite the user
  3. You can review and edit users from the Users page

Add a Personal Access Token

If you are connecting from a service, application, platform, or framework that does not support OAuth authentication, you can create a Personal Access Token (PAT) to use for authentication. Best practices would dictate that you create a separate PAT for each service, to maintain granularity of access.

  1. Click on your username at the top right of the Connect Cloud app and click User Profile.
  2. On the User Profile page, scroll down to the Personal Access Tokens section and click Create PAT.
  3. Give your PAT a name and click Create.
  4. The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.

Connect to HCL Domino from Connect Cloud

CData Connect Cloud uses a straightforward, point-and-click interface to connect to data sources.

  1. Log into Connect Cloud, click Connections and click Add Connection
  2. Select "HCL Domino" from the Add Connection panel
  3. Enter the necessary authentication properties to connect to HCL Domino.

    Prerequisites

    The connector requires the Proton component to be installed. Normally, Proton is distributed as part of the AppDev pack. See the HCL documentation for instructions on acquiring and installing Proton or the AppDev pack.

    Once the Proton service is installed and running, you will also need to create a user account and download its Internet certificate. This certificate can be used to set the connector certificate connection properties.

    Authenticating to Domino

    • Server: The name or IP address of the server running Domino with the Proton service.
    • Port: The port number that the Proton service is listening on.
    • Database: The name of the database file, including the .nsf extension.
    • SSLClientCertType: This must match the format of the certificate file. Typically this will be either PEMKEY_FILE for .pem certificates or PFXFILE for .pfx certificates.
    • SSLClientCert: The path to the certificate file.
    • SSLServerCert: This can be set to (*) if you trust the server. This is usually the case, but if you want to perform SSL validation, you may provide a certificate or thumbprint instead. See the documentation for SSLServerCert for details.

    Additional Server Configuration

    The connector supports querying Domino views if any are defined. Before views can be queried by the connector they must be registered with the design catalog.

    Please refer to the Catalog Administration section of the AppDev pack documentation for details on how to do this.

  4. Click Create & Test
  5. Navigate to the Permissions tab in the Add HCL Domino Connection page and update the User-based permissions.

Add HCL Domino OData Endpoints in Connect Cloud

After connecting to HCL Domino, create OData Endpoints for the desired table(s).

  1. Navigate to the OData page and click Add to create new OData endpoints
  2. Select the HCL Domino connection (e.g. Domino1) and click Next
  3. Select the table(s) you wish to work with and click Confirm

Sample URLs for OData Feeds

Once you have configured a connection to HCL Domino, created a user, and created OData endpoints in Connect Cloud, you can access OData feeds for HCL Domino data. Below, you will see the URLs to access tables and the list of tables. For information on accessing the tables, you can navigate to the OData page for Connect Cloud. For the URLs, you will need the URL of Connect Cloud: https://cloud.cdata.com/api/odata/service.

Table         URL
Entity (table) List https://cloud.cdata.com/api/odata/service/
Metadata https://cloud.cdata.com/api/odata/service/$metadata
ByName https://cloud.cdata.com/api/odata/service/ByName

As with standard OData feeds, if you wish to limit the fields returned, you can add a $select parameter to the query, along with other standard OData URL parameters, such as $filter, $orderby, $skip, and $top. See the help documentation for more information on supported OData queries.

With the connection and OData endpoints configured, you are ready to connect to HCL Domino data from Unqork.

Create a Simple Application for HCL Domino Data

With the REST API configured for HCL Domino through Connect Cloud, you are ready to create a HCL Domino-connected application in Unqork. Here are the basic steps to this process:

  • Register HCL Domino (via Connect Cloud) as an Unqork service
  • Create a workspace in Unqork
  • Create a module-type application

Register HCL Domino (via Connect Cloud) as an Unqork Service

To connect to Connect Cloud, you need to give your environment permission to connect with an external service. Do this through Services Administration.

  1. Click the Settings drop-down at the top right corner of the Unqork Designer Platform.
  2. Click Administration.
  3. Under Integrations, click Services Administration.
  4. Enter a Service Title, for example, Connect Cloud.
  5. Enter a Service Name, for example, cdataConnect.
  6. Enter a Service protocol + host. This is the API endpoint you want to reference. For example, https://cloud.cdata.com/api/odata/service.
  7. Select Basic Auth from the Type of Authentications drop-down.
  8. Enter the Connect Cloud user ID (e.g. user@mydomain.com) in the User Name field.
  9. Enter the Connect Cloud user PAT in the Password field.
  10. Click Add Service.

Create a Workspace

Unqork lets you create your own workspace, which is a virtual container for you and your team to store and organize your applications. Once you build a workspace, you can add applications to it.

To create a workspace:

  1. Click Create Workspace
  2. Enter a unique Workspace Name
  3. Click Create

Your workspace tile appears under the Workspaces tab.

Create a Module-Type Application

With your workspace added, you are ready to create your application. You have the choice between a module-type and workflow-type application. For this use case, make a module-type application.

  1. Navigate to the Apps tab from your open workspace.
  2. Click Create App.
  3. Enter a unique App Name.
  4. Select a preview style from the Style drop-down. A style specifies your application's appearance to your and-users. If left blank, your application uses the environment's default style.
  5. Select Module from the App Type drop-down.
  6. Select New Entrypoint Module from the App Entrypoint Module drop-down.
  7. Click Create.

You will land on the Modules tab of your new application. It should look like the following:

Click the title to name the module in the Module Editor.

To complete your application, you need the following components:

  • Hidden component: stores the data retrieved by the Plug-In
  • Initializer component: executes the Plug-In when displaying tables
  • Plug-In component: retrieves HCL Domino data through Connect Cloud and stores it in the Hidden component
  • ViewGrid component: creates on HTML table from the data stored in the Hidden component

Configure the Hidden Component

This Hidden component stores the HCL Domino data retrieved through Connect Cloud.

  1. Drag and drop a Hidden component onto your canvas.
  2. Enter a Property ID and Canvas Label Text.

    NOTE: Property IDs must be in Camel Case (stylized as camelCase). For example, hiddenComponent. Since the Hidden component is not visible to and-users, use your Property ID as the Canvas Label Text.

  3. Click Save.

Configure the Plug-in Component

Next, add a Plug-In component to request data from Connect Cloud. This component connects with the service you set up in Services Administration.

  1. Drag and drop a Plug-In component onto your canvas, placing it below the Hidden component.
  2. Enter a Property ID and Canvas Label Text.

    NOTE: You must use Camel Case (stylized as camelCase). For naming best practices, start your Plug-In's Property ID with plugin. For example, pluginGetAWProducts.

  3. Configure the Outputs table as follows:
    • Enter the Property ID of your Hidden component in the Property ID column.
    • Enter value in the Mapping column.
  4. Select External as the Service Type
  5. From the External Services drop-down, select your Connect Cloud service. This is the external service you set up in Services Administration.
  6. Add the specific endpoint for your Connect Cloud resources to the and of the Data Sources URL. For example, AdventureWorks2012_Production_Product.

    NOTE: Your Data Sources URL will have a value similar to: https://cloud.cdata.com/api/odata/service/AdventureWorks2012_Production_Product.

  7. Click Save.

Configure the Initializer Component

The Initializer component is what fires the Plug-In to retrieve your HCL Domino data.

  1. Drag and drop on Initializer component onto your canvas, placing it above the Plug-In component.
  2. Enter a Property ID and Canvas Label Text.

    NOTE: You must use Camel Case (stylized as camelCase). For naming best practices, start your Initializer's Property Name with init. For example, initGetAWProducts.

  3. Set New Submission as the Trigger Type.
  4. In the Outputs table, enter the following:
    • Enter the Property ID of your Plug-In in the Property ID column's field.
    • Enter trigger in the Type column's field.
    • Enter GO in the Value column's field.
  5. Click Save.

Configure the ViewGrid Component

The ViewGrid component references the data stored in your Hidden component. Then, it displays the HCL Domino data to your and-users in a dashboard (or table).

  1. Drag and drop a ViewGrid component onto your canvas, placing it below the Plug-In component.
  2. Enter a Label and Property Name.

    NOTE: You must use Camel Case (stylized as camelCase). For naming best practices, start your ViewGrid's Property Name with vg. For example, vgAWProductView.

  3. In the Inputs table, set id to the Property ID of the hidden component.
  4. In the Display table:
    • In the id column: enter the IDs of the fields you want to display.
    • In the handing column: enter the title you want for each field. This is how the field will display to your and-users.
  5. Click Save.
  6. Save your module.

Once you add and configure the above components, you can preview how your application looks to and-users. In the Module Editor, click Preview Module to see the front-facing view (or "Express View") of the module.

Your Express View module should look something like this:

More Information & Free Trial

With Connect Cloud and Unqork, you can easily build HCL Domino-connected applications. Request a free trial of Connect Cloud and start working with HCL Domino data in Unqork today.