Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

...

Image Added

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

...

to AVSIGNALEVENT Function.

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;

...

       

...

}

...