This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
4 Replies Last post: Nov 13, 2009 9:14 AM by EmilyBollinger  
Click to view HATS_Developer's profile   3 posts since
Aug 6, 2009

Nov 5, 2009 10:09 PM

Changing Tab order of fields on customized screen

Is there a functionality available in HATS tool to change tab order of fields on customized screen and to change initial cursor position field?
Click to view EmilyBollinger's profile   14 posts since
Nov 2, 2009

You will need to write javascript to find the objects you want and assign the tabOrder numbers manually. Similarly you can find the object you what to have the initial cursor position and set that manually. This can be done by writing code directly into the page or into the javascript files in your project.

Hope this helps!
-Emily
Click to view EmilyBollinger's profile   14 posts since
Nov 2, 2009
To be more specific, you will need to find the names of our input fields. They are something like in_xxx_xxx. You can run your project and use View Source of the rendered page to find these ids. Then you can edit the .jsp file for the transformation and include something like this:

<SCRIPT>
document.getElementById("in_12_34").tabIndex = 1;
document.getElementById("in_56_78").tabIndex = 2;
document.getElementById("in_90_12").tabIndex = 3;
</SCRIPT>

Then run it again.
Click to view EmilyBollinger's profile   14 posts since
Nov 2, 2009

Seaching in the HATS documentation I found this: User's and Administrator's Guide > Modifying a HATS project > Other > Client Settings. HATS Documentation Scroll down just a bit until you get to the section titled Enable automatic field advance. The following section titled Include host and non-host input fields is what struck me. Try selecting the box this section refers to and see if it fixes your problem.

-Emily
Bottom Banner