HATS HotSpot Blog

About this blog

Welcome to the HATS HotSpot, your place for all things HATS. You will be able to connect with the HATS community to learn what’s new, share hints and tips, reach out when you’re stuck, and engage in dialogue with the HATS team.

Links

Tags

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.
This block of code can be added to the header of an
individual transformation to apply this feature to a single page or
to the template of the project to apply to all transformations.
<script type="text/javascript"> function setNextFocus(e){ var i,j,direction; if (!e) var e = window.event; if((e.keyCode == 38) ||... [More]

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... [More]

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: This block of code can be added to the header of an individual transformation to apply this feature to that page. <script type="text/javascript"> function setNextField(e){ if(!document.forms["HATSForm"]) return; //get the screen size of the current host screen ... [More]

The following code sample can be used to change the appearance of the active HATS input field. This block of code can be added to the header of an individual transformation to apply this feature to a single page or to the template of the project to apply to all transformations. <script type="text/javascript"> function highlight(e) { //get event from browser if (!e) var e = window.event; var element = e.srcElement || e.target; if(element != null){ //focus event occurs when... [More]