Welcome to the HATS HotSpot!
We plan to use this space as a place to have discussions and enable collaboration between HATS users.
In case you are new to HATS, H A T S stands for Host Access Transformation Services. HATS enables you to quickly invest in Enterprise Modernization by allowing you to access your applications and transform the appearance and flow without needing to modify the back-end systems.
With HATS, you can extend your 3270 and 5250 host applications to the Web, to portlets, to rich clients, to web services, or to browsers on mobile devices quickly, easily, and with low risk. This can go even further to allow you to provide Web Services as SOA assets and create additional logic from customized code, or even create services from VT host applications!
You can improve the workflow and navigation of your host applications, without needing access to application source code.
The technology that HATS provides allows many different possibilities right from the beginning. Import BMS maps, use our WebFacing technology with your DDS source to automatically transform whole systems of screens, or just start off with the default renderings.
You can define transformations to extend and modernize individual and sets of screens, define additional business logic with data storable in global variables, use text replacements and global rule definitions to transform content, and let HATS automatically take care of the screens you haven't handled. Macros allow you redefine the flow directly or by creating Integration Objects which can be turned into services or their own web pages, even EJBs. With HATS you can even redefine how a user sees a Green Screen view, so that a list of selections can be recognized as a component of the screen and transformed into a drop down or links or removed altogether.
You can find more information about the HATS product at the HATS Product Site as well as the WebFacing and HATS technology blogs, sites, and discussions around the IBM Rational Cafés. We are looking forward to collaborating with everyone on many exciting ideas.
HATS HotSpot Blog
Hello and welcome to our new blog, WebFacing World!
We're part of the HATS development team working on the IBM WebFacing Tool, and are planning to use this blog to share how-to's, tips, hints, code samples, best practices, and the latest exciting news about WebFacing. And guess what? Since everyone is only responsible for 50 percent of every relationship, we promise to be 100 percent responsible of our 50 percent, and we encourage you to take charge of yours . That is, please tell us what you'd like to hear from us, whether it's how-to's about neat customization, more examples, tips for managing large projects, diagnosing problems, or anything else you're interested in.
For those of you not familiar with the IBM WebFacing Tool (part of the HATS Toolkit), it's used to convert existing 5250 interfaces where source is available to browser-based graphical user interfaces, letting you run your programs on the Web with few or no changes to your original IBM i applications.
Again, welcome! We are excited to have the opportunity to connect with you. We hope you enjoy it as much as we do.
The WebFacing team [Read More]
HATS 184.108.40.206 fix pack is now available.
The HATS 220.127.116.11 fix pack includes fixes as well as these new enhancements:
*Host On-Demand custom table support in HATS
*Rational products Visual Editor support for use in creating HATS Rich Client transformations
*Automatic sorting of component and widget settings in the application.hap file rendering sets
*WebFacing migration update
For more information on this fix pack, please see Rational Host Access Transformation Services, Version 18.104.22.168 [Read More]
RationalGerald 0600005S6U Tags:  customization hats macro variables transformation global 1 Comment 7,258 Views
How to use Global Variables to populate Macro Variables in a HATS Transformation MacroIf you want to populate a macro variable with a global variable value, there is an easy way to do so.
The first step is to make sure that there is a global variable to prompt from.
Create a Global Variable
Now we need to make sure that your macro is set up to work with macro variables, and that the macro has a macro variable available to work with.
Create a Macro Variable
This macro variable will show in the source view as
<vars>Now that we have a valid macro variable, we can use it in the prompt action.
Create a Prompt Action
In the source view you can see that the following action was added to the screen.
<prompt assigntovar="$testMV1$" clearfield="false" col="0" default="" description="" encrypted="false" len="80" movecursor="false" name="'gv_to_mv'" required="false" row="0" title="" varupdateonly="true" xlatehostkeys="false"/>Note that the assigntovar parameter has the macro variable name with the $ symbol surrounding the macro variable name. Also notice that the varupdateonly parameter in the prompt action was set to true, so that we will not accidentally change the host screen.
We are finished, and now can get our global variable value to our macro variable!
Next time I will cover how to copy data in the other direction, from a macro variable to a global variable.[Read More]
Did you know that if you're running V5R4 or later, you can make use the Integrated Web Application Server for i to run your WebFacing Web applications as an alternative to WAS? The server, also referred to as Light Weight Infrastructure (LWI), is free, open source, and bundled with your IBM i.
Curious? I originally planned for this post to be an LWI deployment how-to, but quickly found that a handy guide already existed showing you how to get started in glorious detail. There's also quite a comprehensive Frequently Asked Questions page that highlights some WebFacing-specific considerations.
The following code sample can be used to change the appearance of the active HATS input field.
Using this code the resulting screen would look like this:
Using this code the resulting screen would look like this:
The two options could also be combined to highlight the background and border together:[Read More]
As HATS product manager, I wanted to take a little time to update you on HATS happenings at RSC 2009. There were three presentations that featured HATS:
All in all, it was a great conference, with tons of technical resources, great presentations, opportunities for networking, and fun!
If you are still using the IBM WebFacing Tool as part of WDSC or are running your WebFacing workload on IBM i V5R4 or lower, but are contemplating an upgrade, then do not miss this online event.
This one-hour webinar is targetted towards existing WebFacing users and will provide information about:
The webinar will be held on Wednesday, September 2, 2009 at 11:30AM Eastern Daylight Time for one hour.
To register, e-mail your company name, contact name, phone number, mailing address, and e-mail address to Brian King at firstname.lastname@example.org or contact him at 1-919-254-4961.
After registering, you will receive additional information on how to join the webinar.
If you have any questions regarding this event, please contact Brian King at the address above, or Al Grega at email@example.com.
UPDATE: To view the recording of this call and to download the charts please visit Replay: Wondering about WebFacing Webinar . [Read More]
I've been toying with the idea of writing a number of short articles covering HATS topics that have come up in the past. Some more esoteric or subtle HATS topics. These wouldn't be multi-author white papers--nothing that elaborate. Just a casual discussion of issues raised and solved in the past--issues that somebody else might encounter.
My question is, where should I put such items? Would folks be more likely to find them in a section under Documents or should I make them Blog posts? This would be topics like connection pooling, servlet filters, encoding issues, that sort of thing. I'd put them in the FAQ, but they really aren't that frequently asked.
What do you think? Leave me a comment... join the discussion.
Integration objects play an important role in managing the state of an application or creating a new host connection. However, they typically are used for starting a new HATS connection from within an existing HATS customization. So when should you use an integration object? Web services and combining multiple hosts data onto a single screen are the two options of choice.
Integration objects are essentially a Java wrapper the encapsulates the macro state management. What I mean by that is, you can call setters and getters on the integration object and manage its state.
Macros on the other hand can only be run within the context of either a customization or the macros tab of the default connection. So in case you didn't already know, you can run macros automatically when the connection is established.
So, think of integration objects as an extension to a macro. They still use the .hma script during execution and they given greater flexibility for use in web services or they allow you to create a nice lightweight framework for use with JSF, Richfaces, Spring, Hibernate, and other exciting technologies.
Sirius Computer Solutions[Read More]
RonCraig 120000N04A Tags:  samples example templates web2.0 hatscafe snippets hats 4,836 Views
There is now a new PTF available for the WebFacing server for both V5R4 and V6R1. The new PTF for each release includes the following updates to the WebFacing Server.
1) The server has been enhanced to support passwords with a maximum length of 10 or 128 characters (depending upon the system settings).
2) There is improved handling of communications errors when establishing a session as well as better detection of when user jobs have failed to start. This will eliminate the build-up of stale connections to the server. The communications changes may also result in a reduced CPW demand by the server.
3) The start-up of WebFacing sessions initiated with an EIM token has been corrected to prevent premature ending of the user job.
When updating the WebFacing server always make sure that the other IBM i operating system PTFs that the server depends upon are at or above the level documented on the WebFacing Server PTFs page. If the recommended PTFs are missing or below the documented level the WebFacing server may run incorrectly or not at all.[Read More]
If you have HATS V7.5.0.x installed and have upgraded to RAD V7.5.5 fix pack level, when you create a new project you will get a WebContent folder when you create a HATS Web project. This is in addition to the Web Content folder that the HATS Toolkit creates and uses. This problem occurs when you are using RAD V7.5.5 or later. This extra WebContent folder may cause problems, especially when using Integration Objects.
To eliminate this extra WebContent folder in a HATS Web project:
The following code sample shows how to map the Up and Down arrow keys to shift the focus to the previous and next input fields respectively in a HATS web project.
The following code sample shows how to map the Up and Down arrow keys to move the focus up and down a column of input fields in a HATS web project.
The following screen shows a transformation with vertical columns which this code would be ideally suited for: