I am using the below script to select all rows in a model and create new rows in a different model. However it is only selecting the initial page load number of lines and I need all rows that would be returned. Is there a way to do that without setting the “Mass number of records” to blank?
For example the “Mass number of records” field would be set to 20 but the script would pull in all the records the model should have based on the conditions. If I leave the “Mass number of records” blank we run into the issue of heap size errors.
Script:
var $ = skuid.$; <br>var models = skuid.model.map();<br>var inventoryLocation = models.LocationInventoryPosition;<br>var cycleCountLines = models.CycleCountLines;<br>$.each(inventoryLocation.data,function(){<br> var row = cycleCountLines.createRow({<br> additionalConditions: l<br> { field: 'SCMC__Item_Master__c', value: this.SCMC__Item_Master__r.Id},<br> { field: 'SCMC__Inventory_Location__c', value: this.SCMC__Bin__r.Id},<br> { field: 'SCMC__Status__c', value: "New"},<br> { field: 'SAC_Inventory_Position__c', value: this.Id},<br> { field: 'SCMC__Inventory_Quantity__c', value: this.QuantityfromAgg}<br> ], doAppend: true<br> });<br>});