new Ab.data. Record( values, isNew)

For records that are sent to the server, an isNew value of true indicates that the record does not exist in the database yet.

Parameters:

  • values (object): JavaScript object containing named record values;
  • isNew (boolean): (optional) true to mark this record as "new" (defaults to true );


Example:

createUserProcessRecord: function(activityId, processId) {
return new Ab.data.Record({
'afm_userprocs.user_name': this.userName,
'afm_userprocs.activity_id': activityId,
'afm_userprocs.process_id': processId
}, true);
}