eDition Documentation

  • Increase font size
  • Default font size
  • Decrease font size
Home eDition FLASH API Data collections

Print Recommend

  • Data collection

    actionCommand ("dataCollection", name, page, fields, params);

    // collects data (and) sends e-mail
    // name: STRING - every form should have different name. Name is shown as part of statistics
    // page: NUMBER - number of the page from which the form is sent
    // fields: OBJECT - name the object properties and set the values

    // params: OBJECT (optional) - Advanced usage 
    params.dcmail - target e-mail address. If empty, the data will be only stored in the statistics.
    params.dctype - set of numbers - see "loadDataCollection"
    params.dccallback - returns sent status

    // Example:

    var fields = new Object();
    fields.name = "Peter";
    fields.job = "Designer";
    fields.email = test@citadela.si
    // Stored data - name: Peter; job: Designer, email: test@citadela.si

    // Following example collects data named: "Get a response form", from page "9"

    actionCommand("dataCollection", "Get a response form", 9 , fields);

    // Advanced example (collects data and also sends an email)

    this.IsSentOK=function(isOK){
     // isOK returns true or false
    }
    var callbackIsSent= {scope: this, func:this.IsSentOK, args:[]};

    actionCommand("dataCollection","Game Name",0,{name:ime,email:email,score:256},{dctype:2,dccallback:callbackIsSent, dcmail:test@test.com});


Home eDition FLASH API Data collections