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:
To set your workspace preferences to avoid this problem when creating new projects:
- Right click on your HATS project and choose Properties
- Select Java Build Path from the tree
- Select the Source tab in the Java Build Path settings editor
- (At the bottom you will see the Default output folder)
- Change WebContent to Web Content (add the blank space)
- Press OK to save your changes
- From the navigator view, delete the WebContent folder (not the Web Content folder)
- Rebuild your HATS project
- From the RAD toolbar, select Window > Preferences
- Expand Java EE in the tree
- Under Java EE, select Project
- Find the Dynamic Web Project group in the Project settings editor (probably the third group from the top)
- Change the Output Folder to Web Content/WEB-INF/classes (add a blank space in WebContent)
- Change the Content Directory to Web Content (add a blank space in WebContent)
With this change, HATS Web projects will be created correctly. You must manually fix existing HATS Web projects that contain the extra WebContent folder even if you make this change. This change only affects the creation of HATS Web projects. It does not fix existing HATS Web projects.
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.
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.
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:
- IBM WebFacing Tool directions and recent enhancements
- New integrated development environment requirements
- Changes in IBM WebFacing Tool packaging
- New deployment requirements and pricing
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 email@example.com
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 firstname.lastname@example.org
To view the recording of this call and to download the charts please visit Replay: Wondering about WebFacing Webinar
How to use Global Variables to populate Macro Variables in a HATS Transformation Macro
If 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
- In your screen customization, go to the Actions tab.
- Choose Add and select Set Global Variable.
- Name the global variable and give it an initial value so that we can use it in the macro later.
- Click Finish and make sure that the actions are in the proper order (the Set Global Variable should be before the Play Macro).
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
- Open up the macro with the Visual Macro Editor.
- Right click on the screen and choose properties.
- In the properties panel choose Variables and Types.
- Make sure the choice for Enable support for variables and arithmetic expressions is enabled.
- If you have a macro variable, make sure it is available, otherwise create a macro variable on this page.
- To create a macro variable, click Add and give the variable a name (you do NOT need $ symbols around the name for this wizard) and a value (string values require single quotes) and press Finish.
This macro variable will show in the source view as
<create name="$testMV1$" type="string" value="'hello world!'"/>
Now that we have a valid macro variable, we can use it in the prompt action.
Create a Prompt Action
- In the macro, create a new prompt action using the Visual Macro Editor. In the macro main view, right click on the screen that you wish to modify and choose properties.
- Choose Actions. In the actions table, choose Add. When given the choice of what action to add, choose Prompt.
- In the Prompt panel, name the prompt, select save value to variable and choose the correct macro variable. Make sure to enable Do not insert value into field unless it was specifically your intention to do otherwise. For the handler, choose Set prompt to global variable and choose the correct global variable. Press Finish and make sure that the new prompt action is in the correct place in the list.
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
Thank you to all who were able to attend our web meeting this morning to cover the topic of What's New in HATS 9.5!
For anyone who was unable to attend I am posting the presentation I went through here for your reference.
Please contact us with any questions or comments you may have.
What's new in HATS 9.5.pptView Details
Want to see a new feature in HATS? You can easily open a new feature request on our RFE
Community Website! You can also search through requests others have. Don't forget to vote on the features you want to see added!
Edge2015 - The Infrastructure Innovation Conference
May 11 - 15 The Venetian | Las Vegas, Nevada
Register here TODAY!
New to HATS? Want a refresher? Register TODAY!
Sessions start Feb. 23, 2015:
Check out the following URL for more information and to register!
Events listed above are sponsored by Royal Cyber. All questions concerns regarding this event(s) should be directed to Royal Cyber.
It's not too late to join us at InterConnect 2015!
February 22- 26 MGM Grand & Mandaly Bay, Las Vegas
Special Event Featuring Aerosmith. Shark Tank general session speakers!
An event you won't want to miss!
Also, check out InterConnect on Twitter!
HATS V18.104.22.168 fix pack is available.
For more information on HATS V22.214.171.124 please read the HATS V126.96.36.199 Release Notes.
To download this fixpack please navigate to the following http://www-01.ibm.com/support/docview.wss?uid=swg24037983
HATS V188.8.131.52 fix pack is available
In addition to fixes for the HATS 8.0 release, the following functions have been extended in the HATS V184.108.40.206 fix pack:
- Apache Geronimo Web application server support
- Android device support
- Google Chrome browser support
For more information on these, please read the HATS V220.127.116.11 Release Notes
HATS 18.104.22.168 Fix pack is available
HATS V22.214.171.124 fix pack is available
In addition to fixes for the HATS 8.0 release, the following functions have been extended in the HATS V126.96.36.199 fix pack:
- Mozilla Firefox Versions 6 and 7 support
- User configuration of RESTful web service package names
- HATS Dojo widget settings support for global variables
- Fill from global variable
- Extract global variable support for non-text host screen planes
- Field Minus and Field Plus keys added to the host terminal keypad
- VT PF keys added to the host terminal and Visual Macro Editor (VME) keypads
- VT session color settings
For more information on these, please read the HATS V188.8.131.52 Release Notes
HATS V8 offers new, exciting capabilities that further strengthen the
solution’s ability to provide practical, low-cost, low-risk, industrial-strength
UI transformation and service enablement. Get a quick HATS refresher and
then delve into the new features delivered in HATS V8, which became available in
August. See this IBM Systems Magazine article Hats off to HATS V8.