Page History
Divcache | ||
---|---|---|
| DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
...
id | description |
---|
...
padding | 0px |
---|---|
width | 80px |
...
Table Row (tr) | |||||
---|---|---|---|---|---|
| |||||
|
...
Table Cell (td) |
---|
String |
...
Table Cell (td) |
---|
String |
...
| |||||||||||||
...
...
padding | 0px |
---|---|
width | 80px |
...
...
...
Table Cell (td) |
---|
String |
...
...
Table Head (th) | ||
---|---|---|
| ||
Method Summary |
...
Table Cell (td) |
---|
Object |
...
...
...
Table Cell (td) |
---|
Object |
...
Table Cell (td) |
---|
Boolean |
...
...
...
Table Cell (td) |
---|
void |
...
Table Cell (td) |
---|
Object |
...
...
...
Table Cell (td) |
---|
Object |
...
...
...
...
...
...
...
...
...
...
...
padding | 0px |
---|---|
width | 100% |
...
...
colspan | 1 |
---|
...
...
...
...
CALLBACK_EVENT |
...
...
Constant that is returned as a JSEvent type when in the callback method when it executed normally. |
...
...
Returns |
...
...
Supported Clients |
...
id | sam |
---|
...
class | lastDetailRow |
---|
...
Sample |
...
class | sIndent |
---|
...
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);
} |
...
...
CALLBACK_EXCEPTION_EVENT |
...
...
Constant that is returned as a JSEvent type when in the callback method when an exception occurred. |
...
...
Returns |
...
...
Supported Clients |
...
...
Sample |
...
class | sIndent |
---|
...
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);
} |
...
class | lastDetailRow |
---|
...
id | function |
---|---|
class | servoy sDetail |
...
padding | 0px |
---|---|
width | 100% |
Table Row (tr) | |||||
---|---|---|---|---|---|
| |||||
|
...
id | getClientID |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | getDataProviderValue-String_String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
...
id | prs |
---|
...
class | sIndent |
---|
...
getClientID()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. Returns Supported Clients Sample getDataProviderValue(contextName, dataprovider)Get a data-provider value. Parameters |
...
...
...
...
Returns |
...
...
...
Supported Clients |
...
class | lastDetailRow |
---|
...
id | getDataProviderValue-String_String_String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
Object |
Span | ||
---|---|---|
| ||
getDataProviderValue |
...
Sample |
...
class | sIndent |
---|
...
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);
}
} |
...
getDataProviderValue(contextName, dataprovider, methodName) |
...
...
Get a data-provider value. |
...
...
Parameters |
...
...
...
...
...
...
...
...
...
...
Returns |
...
...
class | lastDetailRow |
---|
...
id | queueMethod-String_String_ObjectArray_Function |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
void |
Span | ||
---|---|---|
| ||
queueMethod |
...
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | isValid |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
Supported Clients Sample isValid()returns true if this client is still valid/usable. Returns Supported Clients Sample queueMethod(contextName, methodName, args)Queues a method call on the remote server, without a callback method.
Please note that calling queueMethod without a callback does not return anything: no result of the remote method or no exception if something went wrong. Parameters Supported Clients Sample queueMethod(contextName, methodName, args, notifyCallBackMethod) |
...
...
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. |
...
...
Parameters |
...
...
...
...
...
...
...
...
...
class | lastDetailRow |
---|
...
id | setDataProviderValue-String_String_Object |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
Object |
Span | ||
---|---|---|
| ||
setDataProviderValue |
...
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Supported Clients Sample setDataProviderValue(contextName, dataprovider, value) |
...
...
...
Set a data-provider value. |
...
...
Parameters |
...
...
...
...
...
...
...
...
...
Returns |
...
...
...
Supported Clients |
...
class | lastDetailRow |
---|
...
id | setDataProviderValue-String_String_Object_String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
Object |
Span | ||
---|---|---|
| ||
setDataProviderValue |
...
Sample |
...
class | sIndent |
---|
...
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);
}
} |
setDataProviderValue(contextName, dataprovider, value, methodName) |
...
...
...
Set a data-provider value. |
...
...
Parameters |
...
...
...
...
...
...
...
...
...
...
...
Returns |
...
...
class | lastDetailRow |
---|
...
id | shutdown |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | shutdown-Boolean |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Supported Clients Sample shutdown()closes the client. Supported Clients Sample shutdown(force)closes the client. Parameters Supported Clients Sample |