Page History
...
We
...
need
...
to
...
add
...
the
...
script
...
to
...
handle
...
the
...
Align
...
button's
...
click
...
event
...
(F24
...
key).
...
Select
...
the
...
script
...
of
...
ORD_MAINT
...
–
...
note
...
the
...
name
...
FORMSCRIPT_9
...
may
...
be
...
different
...
in
...
your
...
system:
...
Locate the vHandle_BUTTONCLICK:
...
function(sButton)
...
script
...
block.
...
Add
...
the
...
JavaScript
...
code
...
to
...
handle
...
a
...
click
...
on
...
the
...
Align
...
button.
...
...
case
...
KeyF24:
...
...
/*
...
Signal
...
this
...
event
...
and
...
pass
...
additional
...
information
...
*/
...
...
AVSIGNALEVENT("CUS_MAINT_ALIGN","FRAMEWORK",objListManager.NKey2
...
[0
...
],GETVALUE("ADDRESS"),GETVALUE("CITY"),GETVALUE("POSTALCODE"));
...
AVSIGNALEVENT
...
is
...
a
...
RAMP
...
API
...
that
...
allows
...
you
...
to
...
broadcast
...
an
...
event
...
across
...
active
...
RAMP
...
screens
...
and
...
active
...
Framework
...
filters.
...
For
...
more
...
information
...
please
...
refer
...
Since the only keys allowed in this screen are Enter and F24, you can delete the other case statements so that the entire SWITCH block looks like this:
switch (sButton)
{
case KeyEnter:
SENDKEY(KeyEnter);
break;
case KeyF24:
/* Signal this event and pass additional information */
AVSIGNALEVENT("CUS_MAINT_ALIGN","FRAMEWORK",objListManager.NKey2
...
[0
...
],GETVALUE("ADDRESS"),GETVALUE("CITY"),GETVALUE("POSTALCODE"));
...
...
break;
...
...
default:
...
...
SENDKEY(sButton);
...
...
break;
...
...
}
...
