Inffuse.project.setMulti
Set the all the values in <obj> under the matching keys in <obj> in the project data.
Syntax
Inffuse.project.setMulti(obj,in_batch)
Parameters
Name | Type | Description |
---|---|---|
obj |
object | an object containing a list of key:value entries. |
in_batch |
boolean | Choose whether this is part of a batch operation. If set to true, the data will not be saved in the cloud, and Inffuse.project.save() will need to be called later. |
Examples
Simple setMulti
Inffuse.project.setMulti({
name: 'My Name',
age: 29,
my_list: ['item1', 'item2', item3],
my_obj: {first: 1, second: 2, third: 999}
});
Wait for response
Inffuse.project.setMulti({
name: 'My Name',
my_list: ['item1', 'item2', item3]
})
.done(function(){
// Success!
})
.fail(function(){
// Handle setMulti failure
});