|
|
Call another element's event script
Posted: 09 Sep 09 3:42 PM
|
Hello, I have an item nbr field that I need to perform upc expansion logic and validation. I have all the logic in the "After Enter" script. I would like to call that event in the "After Scanning" event. This would avoid redundant code. Also, can I create a hidden prompt that has a bunch of buttons that would represent click events that I could call from any other prompt? thanks Kevin |
|
|
John Lathem
Posts: 76
|
 |
|
Re: Call another element's event script
Posted: 09 Sep 09 3:50 PM
|
The way to do what you are looking for would probably be to use Global Scripts. You could move the code from your After Enter script into a Global Script, and then call it from either the After Scan or After Enter event.
That same approach should also work for the second part of your question. You could put the code for the various events in Global Scripts and then call them from wherever you need them.
Thanks! |
|
|
|
|