I’ve created a javascript snippet where I collect selected Opportunities and populate a new model using those Opportunity Id’s as a condition.
var childModel = skuid.$M(‘childModel’);
var childModelCondition = childModel.getConditionByName(‘Opportunity__c’, false);
childModel .setCondition(childModelCondition, oppIds, false);
childModel .updateData();
This works fine. I then take that new model and pass it into a method on a static resource. I have three console.logs in the code immediately, and over the course of those three lines of javascript I lose my data…
inside the method:
console.log(childModel); //this shows a data attribute with several rows.
console.log(‘childModel data’);
console.log(childModel.data); //this returns an empty array.
Question
model.data disappears

Translate
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.