Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
transsecscriptingmethodlist [2024/11/17 14:30] wikiadmin [GemHandler] |
transsecscriptingmethodlist [2024/11/17 14:42] (current) wikiadmin |
||
---|---|---|---|
Line 7: | Line 7: | ||
Be sure to declare the classes used from the API so you can reference these by name in the code. Here are some examples of classes you may want to use: | Be sure to declare the classes used from the API so you can reference these by name in the code. Here are some examples of classes you may want to use: | ||
- | <code javascript> | + | <code javascript> |
+ | var DataSource = Java.type(' | ||
+ | var LongValueObject = Java.type(' | ||
+ | var TransSecsController = Java.type(' | ||
var SOFTREV = Java.type(' | var SOFTREV = Java.type(' | ||
</ | </ | ||
Line 55: | Line 58: | ||
eventServer.setIntValue(1); | eventServer.setIntValue(1); | ||
- | //directly set values to vids | + | //directly set values to vids using the gemHandler |
gemHandler.setValue(" | gemHandler.setValue(" | ||
gemHandler.setValue(" | gemHandler.setValue(" | ||
+ | |||
+ | //access vid values | ||
+ | controlState = gemHandler.getServerForName(" | ||
+ | |||
</ | </ | ||