{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=06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E}{tr:id=name}{td}h6.CALLBACK_EVENT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E_des|text=|trigger=button}{sub-section}{sub-section:06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E_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:06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E_ret|text=|trigger=button}{sub-section}{sub-section:06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E_see|text=|trigger=button}{sub-section}{sub-section:06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E_see|text=|trigger=button}{sub-section}{sub-section:06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E_sam|text=|trigger=button}{sub-section}{sub-section:06DEEC27-42F8-4E6C-ACCC-AF18F0D5AA1E_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0DE19436-1BAF-4CD5-AB03-F84A22DD1337}{tr:id=name}{td}h6.CALLBACK_EXCEPTION_EVENT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:0DE19436-1BAF-4CD5-AB03-F84A22DD1337_des|text=|trigger=button}{sub-section}{sub-section:0DE19436-1BAF-4CD5-AB03-F84A22DD1337_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:0DE19436-1BAF-4CD5-AB03-F84A22DD1337_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0DE19436-1BAF-4CD5-AB03-F84A22DD1337_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0DE19436-1BAF-4CD5-AB03-F84A22DD1337_ret|text=|trigger=button}{sub-section}{sub-section:0DE19436-1BAF-4CD5-AB03-F84A22DD1337_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0DE19436-1BAF-4CD5-AB03-F84A22DD1337_see|text=|trigger=button}{sub-section}{sub-section:0DE19436-1BAF-4CD5-AB03-F84A22DD1337_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0DE19436-1BAF-4CD5-AB03-F84A22DD1337_see|text=|trigger=button}{sub-section}{sub-section:0DE19436-1BAF-4CD5-AB03-F84A22DD1337_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:0DE19436-1BAF-4CD5-AB03-F84A22DD1337_sam|text=|trigger=button}{sub-section}{sub-section:0DE19436-1BAF-4CD5-AB03-F84A22DD1337_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=E5F70D1E-3ED6-4845-A432-557EE6B89CF6}{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:E5F70D1E-3ED6-4845-A432-557EE6B89CF6_des|text=|trigger=button}{sub-section}{sub-section:E5F70D1E-3ED6-4845-A432-557EE6B89CF6_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:E5F70D1E-3ED6-4845-A432-557EE6B89CF6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E5F70D1E-3ED6-4845-A432-557EE6B89CF6_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E5F70D1E-3ED6-4845-A432-557EE6B89CF6_ret|text=|trigger=button}{sub-section}{sub-section:E5F70D1E-3ED6-4845-A432-557EE6B89CF6_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E5F70D1E-3ED6-4845-A432-557EE6B89CF6_see|text=|trigger=button}{sub-section}{sub-section:E5F70D1E-3ED6-4845-A432-557EE6B89CF6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E5F70D1E-3ED6-4845-A432-557EE6B89CF6_see|text=|trigger=button}{sub-section}{sub-section:E5F70D1E-3ED6-4845-A432-557EE6B89CF6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E5F70D1E-3ED6-4845-A432-557EE6B89CF6_sam|text=|trigger=button}{sub-section}{sub-section:E5F70D1E-3ED6-4845-A432-557EE6B89CF6_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=54103B5B-D390-42B7-9371-D75F0C4E636D}{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:54103B5B-D390-42B7-9371-D75F0C4E636D_des|text=|trigger=button}{sub-section}{sub-section:54103B5B-D390-42B7-9371-D75F0C4E636D_des|trigger=none|class=sIndent}get a dataprovider value from the client{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:54103B5B-D390-42B7-9371-D75F0C4E636D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:54103B5B-D390-42B7-9371-D75F0C4E636D_prs|trigger=none}context
variableName
\[currentMethodName\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:54103B5B-D390-42B7-9371-D75F0C4E636D_ret|text=|trigger=button}{sub-section}{sub-section:54103B5B-D390-42B7-9371-D75F0C4E636D_ret|trigger=none|class=sIndent}Object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:54103B5B-D390-42B7-9371-D75F0C4E636D_see|text=|trigger=button}{sub-section}{sub-section:54103B5B-D390-42B7-9371-D75F0C4E636D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:54103B5B-D390-42B7-9371-D75F0C4E636D_see|text=|trigger=button}{sub-section}{sub-section:54103B5B-D390-42B7-9371-D75F0C4E636D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:54103B5B-D390-42B7-9371-D75F0C4E636D_sam|text=|trigger=button}{sub-section}{sub-section:54103B5B-D390-42B7-9371-D75F0C4E636D_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=F798A199-F3EC-4AB8-8532-78B00A92C35F}{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:F798A199-F3EC-4AB8-8532-78B00A92C35F_des|text=|trigger=button}{sub-section}{sub-section:F798A199-F3EC-4AB8-8532-78B00A92C35F_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:F798A199-F3EC-4AB8-8532-78B00A92C35F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F798A199-F3EC-4AB8-8532-78B00A92C35F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F798A199-F3EC-4AB8-8532-78B00A92C35F_ret|text=|trigger=button}{sub-section}{sub-section:F798A199-F3EC-4AB8-8532-78B00A92C35F_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F798A199-F3EC-4AB8-8532-78B00A92C35F_see|text=|trigger=button}{sub-section}{sub-section:F798A199-F3EC-4AB8-8532-78B00A92C35F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F798A199-F3EC-4AB8-8532-78B00A92C35F_see|text=|trigger=button}{sub-section}{sub-section:F798A199-F3EC-4AB8-8532-78B00A92C35F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F798A199-F3EC-4AB8-8532-78B00A92C35F_sam|text=|trigger=button}{sub-section}{sub-section:F798A199-F3EC-4AB8-8532-78B00A92C35F_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=7FC90381-3D62-4F4D-A4A0-6793724F4999}{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:7FC90381-3D62-4F4D-A4A0-6793724F4999_des|text=|trigger=button}{sub-section}{sub-section:7FC90381-3D62-4F4D-A4A0-6793724F4999_des|trigger=none|class=sIndent}queue a method on the client{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:7FC90381-3D62-4F4D-A4A0-6793724F4999_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7FC90381-3D62-4F4D-A4A0-6793724F4999_prs|trigger=none}context
methodName
args
callbackFunction
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7FC90381-3D62-4F4D-A4A0-6793724F4999_ret|text=|trigger=button}{sub-section}{sub-section:7FC90381-3D62-4F4D-A4A0-6793724F4999_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7FC90381-3D62-4F4D-A4A0-6793724F4999_see|text=|trigger=button}{sub-section}{sub-section:7FC90381-3D62-4F4D-A4A0-6793724F4999_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7FC90381-3D62-4F4D-A4A0-6793724F4999_see|text=|trigger=button}{sub-section}{sub-section:7FC90381-3D62-4F4D-A4A0-6793724F4999_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7FC90381-3D62-4F4D-A4A0-6793724F4999_sam|text=|trigger=button}{sub-section}{sub-section:7FC90381-3D62-4F4D-A4A0-6793724F4999_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=F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E}{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:F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E_des|text=|trigger=button}{sub-section}{sub-section:F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E_des|trigger=none|class=sIndent}set a dataprovider value on the client{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E_prs|trigger=none}context
variableName
value
\[currentMethodName\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E_ret|text=|trigger=button}{sub-section}{sub-section:F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E_ret|trigger=none|class=sIndent}Object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E_see|text=|trigger=button}{sub-section}{sub-section:F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E_see|text=|trigger=button}{sub-section}{sub-section:F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E_sam|text=|trigger=button}{sub-section}{sub-section:F266F5AD-CF54-4E00-BB29-DCA8ABA15B8E_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=9C3F20DF-89A2-4181-876B-80850DFD4924}{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:9C3F20DF-89A2-4181-876B-80850DFD4924_des|text=|trigger=button}{sub-section}{sub-section:9C3F20DF-89A2-4181-876B-80850DFD4924_des|trigger=none|class=sIndent}shutdown{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:9C3F20DF-89A2-4181-876B-80850DFD4924_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9C3F20DF-89A2-4181-876B-80850DFD4924_prs|trigger=none}force
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:9C3F20DF-89A2-4181-876B-80850DFD4924_ret|text=|trigger=button}{sub-section}{sub-section:9C3F20DF-89A2-4181-876B-80850DFD4924_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9C3F20DF-89A2-4181-876B-80850DFD4924_see|text=|trigger=button}{sub-section}{sub-section:9C3F20DF-89A2-4181-876B-80850DFD4924_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9C3F20DF-89A2-4181-876B-80850DFD4924_see|text=|trigger=button}{sub-section}{sub-section:9C3F20DF-89A2-4181-876B-80850DFD4924_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9C3F20DF-89A2-4181-876B-80850DFD4924_sam|text=|trigger=button}{sub-section}{sub-section:9C3F20DF-89A2-4181-876B-80850DFD4924_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}