Child pages (Children Display) | ||||||||
---|---|---|---|---|---|---|---|---|
|
For more information on BIC-JQM persistent storage and the newest of the persistent storage APIs click here
What's out?
Our collections avoid using any of the following mechanisms by default:
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
require(['bic'], function (bic) { bic.collections().then(function () { if (bic.hasStorage()) { var pendingRecord = { type: 'Form', status: 'Draft', name: 'MyFormName', label: 'My Friendlier Form Name', action: 'add', answerspaceid: BMP.BIC.siteVars.answerSpaceId, data: { /* TODO: this is where the pending record data would go */ } }; var createOptions = {}; createOptions.success = function () { // TODO: do something after persistence is complete }; createOptions.error = function (err) { // TODO: do something with `err` } bic.pending.create(pendingRecord, createOptions); } }); }); |
...