start portlet menu bar

HCLSoftware: Fueling the Digital+ Economy

Display portlet menu
end portlet menu bar
Close
Select Page

With HCL ZIETrans, the user can create Web applications that provide an easy-to-use graphical user interface (GUI) for your 3270/5250 applications.

HCL ZIETrans makes it possible to build an application that can scrape data from the host, format it as required, and present the formatted data on an e-mail, programmed to trigger the e-mail automatically on any user action.

To achieve this, the user needs an SMTP server, like Gmail(smtp.gmail.com), Microsoft Outlook(smtp-mail.outlook.com), Yahoo(smtp.mail.yahoo.com), etc.

Let us consider the below HOST screen having a credit report.

Sending E-Mails From the Application in ZIE Transformation

Figure 1: Transformed screen in HCL ZIETrans displaying a credit report.

First, the user needs to create an HCL ZIETrans macro that extracts the data from the Host screen, for example:

Figure 2: Example Macro extract action.

And then convert the extract into a JSON Array like this:

Sending E-Mails From the Application in ZIE Transformation

Figure 3: Example converted JSON Array.

Next, the user can trigger e-mails with the help of popular libraries like Spring Mail.

Below are a few ways to present the host data in the e-mail.

  1. Using the code below, the user can format it and embed it directly into the e-mail body, as shown in figure 5.

Sending E-Mails From the Application in ZIE Transformation

Figure 4: Code snippet for the embedded extract.

Sending E-Mails From the Application in ZIE Transformation

Figure 5: Illustration of the e-mail with the embedded extract.

  1. Using the below code, the user can format it as a pdf/jpeg/png/etc. and add it as an attachment to the e-mail as shown in figure 7 (in the example, it is formatted as a pdf).

Sending E-Mails From the Application in ZIE Transformation

Figure 6: Code snippet for extract as an attachment.

Sending E-Mails From the Application in ZIE Transformation

Figure 7: Illustration of the e-mail with the extract added as an attachment.

The example pdf looks something like this:

Sending E-Mails From the Application in ZIE Transformation

Figure 8: Extract PDF.

 

 

Comment wrap

Start a Conversation with Us

We’re here to help you find the right solutions and support you in achieving your business goals.

  |  January 19, 2024
Configuration of HCL Common Local License Server
Configuring HCL ZIE for Transformation Licensing? This guide shows you how with HCL Common Local License Server.
  |  July 8, 2022
Accessing ZIETrans administrative console on Liberty server
The ZIETrans administrative console allows you to view and change problem-determination settings. It also allows: Select the scope of management, View log and trace files, etc.