WebSphere HATS - Customize Keys

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HATS > September 2005 > Customize Keys





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Customize Keys
Lowell Chavin

2005-06-05, 5:45 pm

How do I define a hostkey to do what I want it to do, as opposed to normal
host functions? And, is this possible through the wizards?

On a particular transformation I want to have the [Enter] key kick off a
macro. I know that I can use a wizard to insert an individual host key for
[Enter] and then change the JavaScript to run my macro instead of sending
[Enter] to the host. And this works fine if the user clicks on the Enter
link. However, for keyboard users, this is ignored and [Enter] is sent to
the host.

Also, I can write a JavaScript to catch [Enter], or whatever keystroke,
based on its keycode and then kick off the macro. Previous experience leads
me to believe that although I caught the keystroke and did something, it
does not stop any other processing from doing something with that keystroke.
So, the [Enter] will probably still be sent to the host.


Lowell Chavin

2005-06-05, 5:45 pm

Sorry,

I found an earlier post that was basically the same question, and the answer
was to write a JavaScript to catch the keystroke. I went back and tested
my JavaScript and yes it caught the keystroke and kicked of the macro. More
importantly, it does not seem to also send the [Enter] to the host.

"Lowell Chavin" <lowell.chavin@combined.com> wrote in message
news:ctlni9$17c0$1@news.boulder.ibm.com...
> How do I define a hostkey to do what I want it to do, as opposed to normal
> host functions? And, is this possible through the wizards?
>
> On a particular transformation I want to have the [Enter] key kick off a
> macro. I know that I can use a wizard to insert an individual host key for
> [Enter] and then change the JavaScript to run my macro instead of sending
> [Enter] to the host. And this works fine if the user clicks on the Enter
> link. However, for keyboard users, this is ignored and [Enter] is sent to
> the host.
>
> Also, I can write a JavaScript to catch [Enter], or whatever keystroke,
> based on its keycode and then kick off the macro. Previous experience

leads
> me to believe that although I caught the keystroke and did something, it
> does not stop any other processing from doing something with that

keystroke.
> So, the [Enter] will probably still be sent to the host.
>
>



R Craig

2005-09-15, 2:45 am

Lowell Chavin wrote:[vbcol=seagreen]
> Sorry,
>
> I found an earlier post that was basically the same question, and the answer
> was to write a JavaScript to catch the keystroke. I went back and tested
> my JavaScript and yes it caught the keystroke and kicked of the macro. More
> importantly, it does not seem to also send the [Enter] to the host.
>
> "Lowell Chavin" <lowell.chavin@combined.com> wrote in message
> news:ctlni9$17c0$1@news.boulder.ibm.com...
>
>
> leads
>
>
> keystroke.
>

In the transformation JSP page editor, there is a HATS Tools > Add Macro
button that will put a button on the page which will execute a macro.

If you change the javascript to catch Enter to play a macro, you have
either 1) eliminated the use of Enter for the application (not good), or
2) eliminated the use of Enter for the particular page (maybe not what
you want).

If you really just want a macro to play after the user finishes looking
at (and maybe altering) data on the transformation, just add a Play
action after the Apply action for the screen customization.

Hope that helps.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com