Thanks for that, I’d gone through that already but ran into issues, I’ve ran through it again and seem to be a able to create a model with it, however I can’t seem to save any rows create here is my code as it currently is:
var element = arguments[0], $ = skuid.$,
$xml = skuid.utils.makeXMLDoc;
// Add some content to our area while we are loading it in
element.html(‘Loading…’);
// Define our Model(s)
var allModels = ;
var testModel = new skuid.model.Model();
//OppModel.objectName = ‘Property__c’;
testModel.id = ‘Property’;
testModel.recordsLimit = 20;
testModel.fields = [
{ id: ‘Name’, accessible: true, autoNumber: false, calculated: false, controllingField: null, createable: true, debug: null, defaultValue: null, digits: null, displaytype: ‘string’, editable: true, encrypted: null, filterable: true, formula: null, function: null, groupable: true,htmlFormatted: false,inlineHelpText: null,label: ‘Account ID’,length: null,mask: null,maskType: null,name: null,nameField: false,namePointing: false,orderByClause: null,overrideMetadata: null,picklistEntries: null,precision: null,query: null,recordsLimit: null,ref: “Account”}
//{ id: ‘Value’ },
//{ id: ‘Account’}
];
allModels.push(testModel);
$.each(allModels,function(){
this.initialize().register();
});
skuid.model.load(allModels);
var models = skuid.model.map();
var newModel = models.Property;
console.log(newModel);
var row = newModel.createRow({
additionalConditions:[
//{field: ‘Name’, value: ‘test’, operator: ‘=’, nameFieldValue: ‘test’}
{field: ‘Name’, value: ‘test’},
]
});
console.log(row);
console.log(newModel);
skuid.model.save(models);
Any help appreciated