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.
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:
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.
- Using the code below, the user can format it and embed it directly into the e-mail body, as shown in figure 5.
Figure 4: Code snippet for the embedded extract.
Figure 5: Illustration of the e-mail with the embedded extract.
- 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).
Figure 6: Code snippet for extract as an attachment.
Figure 7: Illustration of the e-mail with the extract added as an attachment.
The example pdf looks something like this:
Figure 8: Extract PDF.
Start a Conversation with Us
We’re here to help you find the right solutions and support you in achieving your business goals.