Inffuse.project.set

Set the <value> under <key> entry in the project data.

Syntax

Inffuse.project.set(key,value,in_batch,scope_overide)

Parameters

Name Type Description
key string Key to the data item.
value mixed The value to be set.
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.
scope_overide string if given, overrides the default scope. legal values are "private" or "public".

Examples

Simple set

   Inffuse.project.set('name', 'John');
   Inffuse.project.set('age', 32);

Wait for response

   Inffuse.project.set('params', {
     weight: 78,
     height: 180,
     alias: "Johnny"
   })
   .done(function(){
     // Success!
    })
   .fail(function(){
     // Handle set failure
   });