I have the following JavaScript snippet that create a row in a related model, based on the selected tables Ids. The snippet creates the correct number of rows, but does not pass values to the specified rows. The console is not showing any errors.
var params =arguments[0];<br>var $ = skuid.$;<br>var models = skuid.model.map();<br><br>var Ids = skuid.$.map(arguments[0].list.getSelectedItems(),function(item){<br>return item.row.Id;<br>});<br><br>var newSummaryClient = models.NewSummaryClient;<br>var summariesPU = models.SummariesPU;<br><br>$.each(Ids,function(){<br> var currentId = this;<br> var row = newSummaryClient.createRow({<br> additionalConditions: [<br> { field: 'Vendor_Relationship__c', value: currentId, operator: '=', nameFieldValue: currentId.Name },<br> { field: 'Summary__c', value: summariesPU.Id, operator: '=', nameFieldValue: this.Name } <br> ]<br> });<br> });
