Table Head (thead) |
---|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getClientID |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets the id of the client. This client id can be used to find the client from the headless client plugin. Note that this client id is not the same id as the id displayed on the Aplicationb Server admin page. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var headlessClient = plugins.headlessclient.createClient("someSolution", "user", "pass", null);
var clientID = headlessClient.getClientID()
....
headlessClient = plugins.headlessclient.getClient(clientID);
if (headlessClient != null && headlessClient.isValid()) {
headlessClient.queueMethod(null, "someRemoteMethod", null, callback);
} |
|
|
|
|
Table Body (tbody) |
---|
id | getDataProviderValue-String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getDataProviderValue |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(contextName, dataprovider) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Get a data-provider value. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} contextName - The context of the given method, null if it is global method or a form name for a form method {String} dataprovider - the data-provider name as seen in Servoy |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Object - the value for the data-provider. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| if (jsclient && jsclient.isValid())
{
// only gets the globals.media when the 'remoteMethod' is currently executing for this client
var value = jsclient.getDataProviderValue(null, "scopes.globals.number", 'remoteMethod');
if (value != null)
{
application.output("value get from scopes.globals.number :: "+ value);
scopes.globals.value = value+10;
var returnValue = jsclient.setDataProviderValue(null, "scopes.globals.number", scopes.globals.value, 'remoteMethod');
application.output("value set to scopes.globals.number previous value "+ returnValue);
}
else
{
application.output("value get from scopes.globals.number :: " + null);
}
} |
|
|
|
|
Table Body (tbody) |
---|
id | getDataProviderValue-String_String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getDataProviderValue |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(contextName, dataprovider, methodName) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Get a data-provider value. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} contextName - The context of the given method; null if it is global method or a form name for a form method. {String} dataprovider - the data-provider name as seen in Servoy. {String} methodName - if this is specified, the data-provider's value will only be returned if the specified method is running in this headless client because the currently running client requested it to. Otherwise undefined is returned. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Object - the value of the data-provider. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| if (jsclient && jsclient.isValid())
{
// only gets the globals.media when the 'remoteMethod' is currently executing for this client
var value = jsclient.getDataProviderValue(null, "scopes.globals.number", 'remoteMethod');
if (value != null)
{
application.output("value get from scopes.globals.number :: "+ value);
scopes.globals.value = value+10;
var returnValue = jsclient.setDataProviderValue(null, "scopes.globals.number", scopes.globals.value, 'remoteMethod');
application.output("value set to scopes.globals.number previous value "+ returnValue);
}
else
{
application.output("value get from scopes.globals.number :: " + null);
}
} |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| returns true if this client is still valid/usable. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| if (jsclient && jsclient.isValid())
{
/*Queue a method where the callback can do something like this
if (event.getType() == JSClient.CALLBACK_EVENT)
{
application.output("callback data, name: " + event.data);
}
else if (event.getType() == JSClient.CALLBACK_EXCEPTION_EVENT)
{
application.output("exception callback, name: " + event.data);
}*/
var x = new Object();
x.name = 'remote1';
x.number = 10;
|
|
|
|
| jsclient.queueMethod(null, "remoteMethod", [x], callback);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FE097915-2B63-4159-B7A3-26AFE9C46987}{tr:id=name}{td}h6.getDataProviderValue{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}Object{span}{span:id=iets|style=float: left; font-weight: bold;}getDataProviderValue{span}{span:id=iets|style=float: left;}\(context, variableName, currentMethodName){span}{td}{tr}{tr:id=des}{td}{sub-section:FE097915-2B63-4159-B7A3-26AFE9C46987_des|text=|trigger=button}{sub-section}{sub-section:FE097915-2B63-4159-B7A3-26AFE9C46987_des|trigger=none|class=sIndent}get a dataprovider value from the client{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:FE097915-2B63-4159-B7A3-26AFE9C46987_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FE097915-2B63-4159-B7A3-26AFE9C46987_prs|trigger=none}context
variableName
\[currentMethodName\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:FE097915-2B63-4159-B7A3-26AFE9C46987_ret|text=|trigger=button}{sub-section}{sub-section:FE097915-2B63-4159-B7A3-26AFE9C46987_ret|trigger=none|class=sIndent}Object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FE097915-2B63-4159-B7A3-26AFE9C46987_see|text=|trigger=button}{sub-section}{sub-section:FE097915-2B63-4159-B7A3-26AFE9C46987_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FE097915-2B63-4159-B7A3-26AFE9C46987_see|text=|trigger=button}{sub-section}{sub-section:FE097915-2B63-4159-B7A3-26AFE9C46987_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FE097915-2B63-4159-B7A3-26AFE9C46987_sam|text=|trigger=button}{sub-section}{sub-section:FE097915-2B63-4159-B7A3-26AFE9C46987_sam|class=sIndent|trigger=none}{code:language=javascript}
if (jsclient && jsclient.isValid())
{
// only gets the globals.media when the 'remoteMethod' is currently executing for this client
var value = jsclient.getDataProviderValue(null, "globals.number", 'remoteMethod');
if (value != null)
{
application.output("value get from globals.number :: "+ value);
globals.value = value+10;
var returnValue = jsclient.setDataProviderValue(null, "globals.number", globals.value, 'remoteMethod');
application.output("value set to globals.number previous value "+ returnValue);
}
else
{// this calls a 'remoteMethod' on the server as a global method, because the context (first argument is set to null), you can use a formname to call a form method
jsclient.queueMethod(null, "remoteMethod", [x], callback);
} |
|
|
|
|
Table Body (tbody) |
---|
id | queueMethod-String_String_ObjectArray_Function |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
queueMethod |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(contextName, methodName, args, notifyCallBackMethod) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Queues a method call on the remote server. The callback method will be called when the method is executed on the server and the return value is given as the JSEvent.data object with the JSEvent.getType() value of JSClient.CALLBACK_EVENT. If an exception is thrown somewhere then the callback method will be called with the exception as the JSEvent data object with the JSEvent.getType() value of JSClient.CALLBACK_EXCEPTION_EVENT The second argument that is give back is the JSClient instance that did the call. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} contextName - The context of the given method, null if it is global method or a form name for a form method. {String} methodName - The method name. {Object[]} args - The arguments that should be passed to the method. {Function} notifyCallBackMethod - The callback method that is called when the execution is finished. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| if (jsclient && jsclient.isValid())
{
/*Queue a method where the callback can do something like this
if (event.getType() == JSClient.CALLBACK_EVENT)
{
application.output("callback data, name: " + event.data);
}
else if (event.getType() == JSClient.CALLBACK_EXCEPTION_EVENT)
{
application.output("exception callback, name: " + event.data);
}*/
var x = new Object();
x.name = 'remote1';
x.number = 10;
// this calls a 'remoteMethod' on the server as a global method, because the context (first argument is set to null), you can use a formname to call a form method
jsclient.queueMethod(null, "remoteMethod", [x], callback);
} |
|
|
|
|
Table Body (tbody) |
---|
id | setDataProviderValue-String_String_Object |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setDataProviderValue |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(contextName, dataprovider, value) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Set a data-provider value. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} contextName - The context of the given method, null if it is global method or a form name for a form method. {String} dataprovider - the data-provider name as seen in Servoy. {Object} value - the value to set. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Object - the old value or null if no change. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| if (jsclient && jsclient.isValid())
{
// only gets the globals.media when the 'remoteMethod' is currently executing for this client
var value = jsclient.getDataProviderValue(null, "scopes.globals.number", 'remoteMethod');
if (value != null)
{
application.output("value get from scopes.globals.number :: "+ value);
scopes.globals.value = value+10;
var returnValue = jsclient.setDataProviderValue(null, "scopes.globals.number", scopes.globals.value, 'remoteMethod');
application.output("value |
|
|
|
| getfrom:: null}{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=670190BE-D80B-4B79-B658-C1538300846E}{tr:id=name}{td}h6.isValid{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isValid{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:670190BE-D80B-4B79-B658-C1538300846E_des|text=|trigger=button}{sub-section}{sub-section:670190BE-D80B-4B79-B658-C1538300846E_des|trigger=none|class=sIndent}returns true if this client is still valid/usable{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:670190BE-D80B-4B79-B658-C1538300846E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:670190BE-D80B-4B79-B658-C1538300846E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:670190BE-D80B-4B79-B658-C1538300846E_ret|text=|trigger=button}{sub-section}{sub-section:670190BE-D80B-4B79-B658-C1538300846E_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:670190BE-D80B-4B79-B658-C1538300846E_see|text=|trigger=button}{sub-section}{sub-section:670190BE-D80B-4B79-B658-C1538300846E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:670190BE-D80B-4B79-B658-C1538300846E_see|text=|trigger=button}{sub-section}{sub-section:670190BE-D80B-4B79-B658-C1538300846E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:670190BE-D80B-4B79-B658-C1538300846E_sam|text=|trigger=button}{sub-section}{sub-section:670190BE-D80B-4B79-B658-C1538300846E_sam|class=sIndent|trigger=none}{code:language=javascript}
{
application.output("value get from scopes.globals.number :: " + null);
}
} |
|
|
|
|
Table Body (tbody) |
---|
id | setDataProviderValue-String_String_Object_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setDataProviderValue |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(contextName, dataprovider, value, methodName) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Set a data-provider value. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} contextName - The context of the given method, null if it is global method or a form name for a form method {String} dataprovider - the data-provider name as seen in Servoy {Object} value - the value to set {String} methodName - if this is specified, the data-provider's value will only be set if the specified method is running in this headless client because the currently running client requested it to. Otherwise the value is not set into the data-provider and undefined is returned. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Object - the old value or null if no change |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| if (jsclient && jsclient.isValid())
{
// only gets the globals.media when the 'remoteMethod' is currently executing for this client
var value = jsclient.getDataProviderValue(null, "scopes.globals.number", 'remoteMethod');
if (value != null)
{
application.output("value get from scopes.globals.number :: "+ value);
scopes.globals.value = value+10;
var returnValue = jsclient.setDataProviderValue(null, "scopes.globals.number", scopes.globals.value, 'remoteMethod');
application.output("value set to scopes.globals.number previous value "+ returnValue);
}
else
{
application.output("value get from scopes.globals.number :: " + null);
}
} |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| if (jsclient && jsclient.isValid())
{
/*Queue a method where the callback can do something like this
if (event.getType() == JSClient.CALLBACK_EVENT)
{
application.output("callback data, name: " + event.data);
}
else if (event.getType() == JSClient.CALLBACK_EXCEPTION_EVENT)
{
application.output("exception callback, name: " + event.data);
}*/
var x = new Object();
x.name = 'remote1';
x.number = 10;
// this calls a 'remoteMethod' on the server as a global method, because the context (first argument is set to null), you can use a formname to call a form method
jsclient.queueMethod(null, "remoteMethod", [x], callback); |
|
|
|
|
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F7E39700-29E3-479D-8170-A4728FDDD00F}{tr:id=name}{td}h6.queueMethod{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}queueMethod{span}{span:id=iets|style=float: left;}\(context, methodName, args, callbackFunction){span}{td}{tr}{tr:id=des}{td}{sub-section:F7E39700-29E3-479D-8170-A4728FDDD00F_des|text=|trigger=button}{sub-section}{sub-section:F7E39700-29E3-479D-8170-A4728FDDD00F_des|trigger=none|class=sIndent}queue a method on the client{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:F7E39700-29E3-479D-8170-A4728FDDD00F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F7E39700-29E3-479D-8170-A4728FDDD00F_prs|trigger=none}context
methodName
args
callbackFunction
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:F7E39700-29E3-479D-8170-A4728FDDD00F_ret|text=|trigger=button}{sub-section}{sub-section:F7E39700-29E3-479D-8170-A4728FDDD00F_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F7E39700-29E3-479D-8170-A4728FDDD00F_see|text=|trigger=button}{sub-section}{sub-section:F7E39700-29E3-479D-8170-A4728FDDD00F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F7E39700-29E3-479D-8170-A4728FDDD00F_see|text=|trigger=button}{sub-section}{sub-section:F7E39700-29E3-479D-8170-A4728FDDD00F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F7E39700-29E3-479D-8170-A4728FDDD00F_sam|text=|trigger=button}{sub-section}{sub-section:F7E39700-29E3-479D-8170-A4728FDDD00F_sam|class=sIndent|trigger=none}{code:language=javascript}
if (jsclient && jsclient.isValid())
{
/*Queue a method where the callback can do something like this
if (event.getType() == JSClient.CALLBACK_EVENT)
{
application.output("callback data, name: " + event.data);
}
else if (event.getType() == JSClient.CALLBACK_EXCEPTION_EVENT)
{
application.output("exception callback, name: " + event.data);
}*/
var x = new Object();
x.name = 'remote1';
x.number = 10;
jsclient.queueMethod(null, "remoteMethod", [x], callback);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9F4D4AE4-C943-490E-BE02-D910AC2E0042}{tr:id=name}{td}h6.setDataProviderValue{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}Object{span}{span:id=iets|style=float: left; font-weight: bold;}setDataProviderValue{span}{span:id=iets|style=float: left;}\(context, variableName, value, currentMethodName){span}{td}{tr}{tr:id=des}{td}{sub-section:9F4D4AE4-C943-490E-BE02-D910AC2E0042_des|text=|trigger=button}{sub-section}{sub-section:9F4D4AE4-C943-490E-BE02-D910AC2E0042_des|trigger=none|class=sIndent}set a dataprovider value on the client{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:9F4D4AE4-C943-490E-BE02-D910AC2E0042_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9F4D4AE4-C943-490E-BE02-D910AC2E0042_prs|trigger=none}context
variableName
value
\[currentMethodName\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:9F4D4AE4-C943-490E-BE02-D910AC2E0042_ret|text=|trigger=button}{sub-section}{sub-section:9F4D4AE4-C943-490E-BE02-D910AC2E0042_ret|trigger=none|class=sIndent}Object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9F4D4AE4-C943-490E-BE02-D910AC2E0042_see|text=|trigger=button}{sub-section}{sub-section:9F4D4AE4-C943-490E-BE02-D910AC2E0042_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9F4D4AE4-C943-490E-BE02-D910AC2E0042_see|text=|trigger=button}{sub-section}{sub-section:9F4D4AE4-C943-490E-BE02-D910AC2E0042_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9F4D4AE4-C943-490E-BE02-D910AC2E0042_sam|text=|trigger=button}{sub-section}{sub-section:9F4D4AE4-C943-490E-BE02-D910AC2E0042_sam|class=sIndent|trigger=none}{code:language=javascript}
if (jsclient && jsclient.isValid())
{
// only gets the globals.media when the 'remoteMethod' is currently executing for this client
var value = jsclient.getDataProviderValue(null, "globals.number", 'remoteMethod');
if (value != null)
{
application.output("value get from globals.number :: "+ value);
globals.value = value+10;
var returnValue = jsclient.setDataProviderValue(null, "globals.number", globals.value, 'remoteMethod');
application.output("value set to globals.number previous value "+ returnValue);
}
else
{
application.output("value get from globals.number :: " + null);
}
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=15C35241-CDD3-4549-919E-F1AAF88C1192}{tr:id=name}{td}h6.shutdown{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}shutdown{span}{span:id=iets|style=float: left;}\(force){span}{td}{tr}{tr:id=des}{td}{sub-section:15C35241-CDD3-4549-919E-F1AAF88C1192_des|text=|trigger=button}{sub-section}{sub-section:15C35241-CDD3-4549-919E-F1AAF88C1192_des|trigger=none|class=sIndent}shutdown{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:15C35241-CDD3-4549-919E-F1AAF88C1192_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:15C35241-CDD3-4549-919E-F1AAF88C1192_prs|trigger=none}force
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:15C35241-CDD3-4549-919E-F1AAF88C1192_ret|text=|trigger=button}{sub-section}{sub-section:15C35241-CDD3-4549-919E-F1AAF88C1192_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Alsosee*\\{sub-section:15C35241-CDD3-4549-919E-F1AAF88C1192_see|text=|trigger=button}{sub-section}{sub-section:15C35241-CDD3-4549-919E-F1AAF88C1192_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:15C35241-CDD3-4549-919E-F1AAF88C1192_see|text=|trigger=button}{sub-section}{sub-section:15C35241-CDD3-4549-919E-F1AAF88C1192_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:15C35241-CDD3-4549-919E-F1AAF88C1192_sam|text=|trigger=button}{sub-section}{sub-section:15C35241-CDD3-4549-919E-F1AAF88C1192_sam|class=sIndent|trigger=none}{code:language=javascript}
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| if (jsclient && jsclient.isValid())
{
/*Queue a method where the callback |
|
|
|
| can do something like this
can do something like this
if (event.getType() == JSClient.CALLBACK_EVENT)
{
application.output("callback data, name: " + event.data);
}
else if (event.getType() == JSClient.CALLBACK_EXCEPTION_EVENT)
{
application.output("exception callback |
|
|
|
| data, name: " + event.data);
}
else if (event.getType() == JSClient.CALLBACK_EXCEPTION_EVENT)
{
application.output("exception callback, name: " + event.data);
}*/
var x = new Object();
x.name = 'remote1';
x.number = 10;, name: " + event.data);
}*/
var x = new Object();
x.name = 'remote1';
x.number = 10;
// this calls a 'remoteMethod' on the server as a global method, because the context (first argument is set to null), you can use a formname to call a form method
jsclient.queueMethod(null, "remoteMethod", [x], callback);
} |
|
|
|
|
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |