Executing MScript

Top  Previous  Next

Since v5.0

 

Sometimes it is required that a couple of MScript functions are executed on the server without a need for refreshing through a data source. For such cases AjaxMgr.executeMScript() function can be used as follows.

 

 

  AjaxMgr.executeMScript({
    actionName     : 'SaveLeafType'
    ,requestParams : {LEAFTYPE:'X'}
  });

See AjaxMgr.executeMScript() method call in MoreMotion Face API.
 

actionParams configuration for Execute MScript Action:

<actionParams name="SaveLeafType">
  <param name="mscript">
@echo('i:LEAFTYPE : ' + i:LEAFTYPE)
@set(s:LEAFTYPE,i:LEAFTYPE)    
  </param>
</actionParams>

Parameters

mscript

The MScript functions to execute.