Z-Space Technologies, Inc.
Support Forums
Join | Logon
ITScriptNet Support Forums
 All Threads | New ThreadView:  Search:  
 Author  Thread: Call another element's event script
Kevin
Posts: 7
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
[Reply][Quote]
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!
[Reply][Quote]
 Page 1 of 1 
 
Website (C) 2004-2008 Z-Space Technologies, Inc. All Rights Reserved.
All messages posted here are the sole responsiblity of the poster. Z-Space Technologies, Inc. is not responsible for the content of messages. Messages do not reflect the official positions or policies of Z-Space Technologies, Inc.