Calculating the Absolute Cursor Position in HATS
In IBM Rational’s HATS product, you will often see reference to the cursor position, or absolute cursor position. The simple cursor position is simply the row (comma) column number: i.e. 4,67. The absolute cursor position is a single number that is a calculation of the row and position.
The formula is as follows:
[(actual rows-1) * max columns] + actual columns
For example, take a 5250 session with a screen size of 24×80. That’s 24 rows, and 80 columns. A field at position 5,40 would have an absolute cursor position of:
[(5-1) * 80] + 40 = 360
This absolute cursor position is often used in JavaScript functions found in lxgwfunction.js. If you familiarize yourself with those events, you can do some neat UI tricks in HATS.
Kenny- Hope you are doing well. I was wondering if you can refer me any senior IBM HATS resources. We have a state govt. project up in WA ( Olympia) and it has been tough to find these resources.
Thanks Much,
Raj
Fulcrum Consulting Inc.
[email protected]
Hey achilles,
I was just going through IBM HATS stuff and find this , if you required IBM hats professional or outsource any projects , you are most welcome .
Thanks
Regards,
M Asad Rasheed
[email protected]
+12143174633
http://www.linkedin.com/in/masadrasheed