{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\ 

{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#CALLBACK_EVENT]
{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#CALLBACK_EXCEPTION_EVENT]
{td}{tr}{tbody}{table}\\ 

{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#getClientID]\()
gets the id of the client{td}{tr}{tbody}{tbody}{tr}{td}Object{td}{td}[#getDataProviderValue]\(context, variableName, currentMethodName)
get a dataprovider value from the client{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isValid]\()
returns true if this client is still valid/usable{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#queueMethod]\(context, methodName, args, callbackFunction)
queue a method on the client{td}{tr}{tbody}{tbody}{tr}{td}Object{td}{td}[#setDataProviderValue]\(context, variableName, value, currentMethodName)
set a dataprovider value on the client{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#shutdown]\(force)
shutdown{td}{tr}{tbody}{table}\\ 

{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=A0E49586-D05F-424E-8D84-4860FF6E2C50}{tr:id=name}{td}h6.CALLBACK_EVENT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:A0E49586-D05F-424E-8D84-4860FF6E2C50_des|text=|trigger=button}{sub-section}{sub-section:A0E49586-D05F-424E-8D84-4860FF6E2C50_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:A0E49586-D05F-424E-8D84-4860FF6E2C50_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A0E49586-D05F-424E-8D84-4860FF6E2C50_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A0E49586-D05F-424E-8D84-4860FF6E2C50_ret|text=|trigger=button}{sub-section}{sub-section:A0E49586-D05F-424E-8D84-4860FF6E2C50_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A0E49586-D05F-424E-8D84-4860FF6E2C50_see|text=|trigger=button}{sub-section}{sub-section:A0E49586-D05F-424E-8D84-4860FF6E2C50_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A0E49586-D05F-424E-8D84-4860FF6E2C50_see|text=|trigger=button}{sub-section}{sub-section:A0E49586-D05F-424E-8D84-4860FF6E2C50_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:A0E49586-D05F-424E-8D84-4860FF6E2C50_sam|text=|trigger=button}{sub-section}{sub-section:A0E49586-D05F-424E-8D84-4860FF6E2C50_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7B3B101D-0174-4AA4-A037-435905819266}{tr:id=name}{td}h6.CALLBACK_EXCEPTION_EVENT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:7B3B101D-0174-4AA4-A037-435905819266_des|text=|trigger=button}{sub-section}{sub-section:7B3B101D-0174-4AA4-A037-435905819266_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7B3B101D-0174-4AA4-A037-435905819266_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7B3B101D-0174-4AA4-A037-435905819266_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7B3B101D-0174-4AA4-A037-435905819266_ret|text=|trigger=button}{sub-section}{sub-section:7B3B101D-0174-4AA4-A037-435905819266_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7B3B101D-0174-4AA4-A037-435905819266_see|text=|trigger=button}{sub-section}{sub-section:7B3B101D-0174-4AA4-A037-435905819266_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7B3B101D-0174-4AA4-A037-435905819266_see|text=|trigger=button}{sub-section}{sub-section:7B3B101D-0174-4AA4-A037-435905819266_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:7B3B101D-0174-4AA4-A037-435905819266_sam|text=|trigger=button}{sub-section}{sub-section:7B3B101D-0174-4AA4-A037-435905819266_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=818923F7-115B-4CF9-973A-2600996C9B3A}{tr:id=name}{td}h6.getClientID{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getClientID{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:818923F7-115B-4CF9-973A-2600996C9B3A_des|text=|trigger=button}{sub-section}{sub-section:818923F7-115B-4CF9-973A-2600996C9B3A_des|trigger=none|class=sIndent}gets the id of the client{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:818923F7-115B-4CF9-973A-2600996C9B3A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:818923F7-115B-4CF9-973A-2600996C9B3A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:818923F7-115B-4CF9-973A-2600996C9B3A_ret|text=|trigger=button}{sub-section}{sub-section:818923F7-115B-4CF9-973A-2600996C9B3A_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:818923F7-115B-4CF9-973A-2600996C9B3A_see|text=|trigger=button}{sub-section}{sub-section:818923F7-115B-4CF9-973A-2600996C9B3A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:818923F7-115B-4CF9-973A-2600996C9B3A_see|text=|trigger=button}{sub-section}{sub-section:818923F7-115B-4CF9-973A-2600996C9B3A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:818923F7-115B-4CF9-973A-2600996C9B3A_sam|text=|trigger=button}{sub-section}{sub-section:818923F7-115B-4CF9-973A-2600996C9B3A_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=0003557C-AFE8-4B4B-A881-552B81343D0A}{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:0003557C-AFE8-4B4B-A881-552B81343D0A_des|text=|trigger=button}{sub-section}{sub-section:0003557C-AFE8-4B4B-A881-552B81343D0A_des|trigger=none|class=sIndent}get a dataprovider value from the client{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:0003557C-AFE8-4B4B-A881-552B81343D0A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0003557C-AFE8-4B4B-A881-552B81343D0A_prs|trigger=none}context
variableName
\[currentMethodName\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:0003557C-AFE8-4B4B-A881-552B81343D0A_ret|text=|trigger=button}{sub-section}{sub-section:0003557C-AFE8-4B4B-A881-552B81343D0A_ret|trigger=none|class=sIndent}Object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0003557C-AFE8-4B4B-A881-552B81343D0A_see|text=|trigger=button}{sub-section}{sub-section:0003557C-AFE8-4B4B-A881-552B81343D0A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0003557C-AFE8-4B4B-A881-552B81343D0A_see|text=|trigger=button}{sub-section}{sub-section:0003557C-AFE8-4B4B-A881-552B81343D0A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0003557C-AFE8-4B4B-A881-552B81343D0A_sam|text=|trigger=button}{sub-section}{sub-section:0003557C-AFE8-4B4B-A881-552B81343D0A_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=0A52C9CD-B822-49C8-B0AE-FA4935FB06E9}{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:0A52C9CD-B822-49C8-B0AE-FA4935FB06E9_des|text=|trigger=button}{sub-section}{sub-section:0A52C9CD-B822-49C8-B0AE-FA4935FB06E9_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:0A52C9CD-B822-49C8-B0AE-FA4935FB06E9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0A52C9CD-B822-49C8-B0AE-FA4935FB06E9_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0A52C9CD-B822-49C8-B0AE-FA4935FB06E9_ret|text=|trigger=button}{sub-section}{sub-section:0A52C9CD-B822-49C8-B0AE-FA4935FB06E9_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0A52C9CD-B822-49C8-B0AE-FA4935FB06E9_see|text=|trigger=button}{sub-section}{sub-section:0A52C9CD-B822-49C8-B0AE-FA4935FB06E9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0A52C9CD-B822-49C8-B0AE-FA4935FB06E9_see|text=|trigger=button}{sub-section}{sub-section:0A52C9CD-B822-49C8-B0AE-FA4935FB06E9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0A52C9CD-B822-49C8-B0AE-FA4935FB06E9_sam|text=|trigger=button}{sub-section}{sub-section:0A52C9CD-B822-49C8-B0AE-FA4935FB06E9_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=32AF9829-18DC-48AE-A79D-E4D1AC093DA6}{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:32AF9829-18DC-48AE-A79D-E4D1AC093DA6_des|text=|trigger=button}{sub-section}{sub-section:32AF9829-18DC-48AE-A79D-E4D1AC093DA6_des|trigger=none|class=sIndent}queue a method on the client{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:32AF9829-18DC-48AE-A79D-E4D1AC093DA6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:32AF9829-18DC-48AE-A79D-E4D1AC093DA6_prs|trigger=none}context
methodName
args
callbackFunction
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:32AF9829-18DC-48AE-A79D-E4D1AC093DA6_ret|text=|trigger=button}{sub-section}{sub-section:32AF9829-18DC-48AE-A79D-E4D1AC093DA6_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:32AF9829-18DC-48AE-A79D-E4D1AC093DA6_see|text=|trigger=button}{sub-section}{sub-section:32AF9829-18DC-48AE-A79D-E4D1AC093DA6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:32AF9829-18DC-48AE-A79D-E4D1AC093DA6_see|text=|trigger=button}{sub-section}{sub-section:32AF9829-18DC-48AE-A79D-E4D1AC093DA6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:32AF9829-18DC-48AE-A79D-E4D1AC093DA6_sam|text=|trigger=button}{sub-section}{sub-section:32AF9829-18DC-48AE-A79D-E4D1AC093DA6_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=FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7}{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:FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7_des|text=|trigger=button}{sub-section}{sub-section:FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7_des|trigger=none|class=sIndent}set a dataprovider value on the client{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7_prs|trigger=none}context
variableName
value
\[currentMethodName\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7_ret|text=|trigger=button}{sub-section}{sub-section:FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7_ret|trigger=none|class=sIndent}Object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7_see|text=|trigger=button}{sub-section}{sub-section:FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7_see|text=|trigger=button}{sub-section}{sub-section:FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7_sam|text=|trigger=button}{sub-section}{sub-section:FF55F952-2D73-4CD9-8ABB-1FB2B90AE4D7_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=799AA9DD-854C-430C-A466-6F33AAC27170}{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:799AA9DD-854C-430C-A466-6F33AAC27170_des|text=|trigger=button}{sub-section}{sub-section:799AA9DD-854C-430C-A466-6F33AAC27170_des|trigger=none|class=sIndent}shutdown{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:799AA9DD-854C-430C-A466-6F33AAC27170_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:799AA9DD-854C-430C-A466-6F33AAC27170_prs|trigger=none}force
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:799AA9DD-854C-430C-A466-6F33AAC27170_ret|text=|trigger=button}{sub-section}{sub-section:799AA9DD-854C-430C-A466-6F33AAC27170_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:799AA9DD-854C-430C-A466-6F33AAC27170_see|text=|trigger=button}{sub-section}{sub-section:799AA9DD-854C-430C-A466-6F33AAC27170_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:799AA9DD-854C-430C-A466-6F33AAC27170_see|text=|trigger=button}{sub-section}{sub-section:799AA9DD-854C-430C-A466-6F33AAC27170_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:799AA9DD-854C-430C-A466-6F33AAC27170_sam|text=|trigger=button}{sub-section}{sub-section:799AA9DD-854C-430C-A466-6F33AAC27170_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}{table}