addParameter (name, value)

Adds a named parameter value to the panel. All added parameters will be sent to the server during the next refresh() call. The parameters will be used in all consequent calls to getRecord() or getRecords() methods. The server-side workflow rules may then use these parameters.

Parameters:

  • name (String): parameter name;
  • value (String): parameter value;


Example:

var userName = someRecord.getValue('afm_users.user_name');
this.processDataSource.addParameter('user_name', userName);
var processes = this.processDataSource.getRecords();