Skip to main content

Use case:
Define an array of rows on a model given 2 conditions then update rows with value ‘myValue’

For given conditions:
ApptID__c = XXXX
DateA > DateB


$.each(myModel.data, function (i, row){
myModel.updateRow(row,myField, myValue);
});


How do I limit the rows based on my conditions?

$.each(myModel.data, function (i, row){ <br>if(row.ApptId__c === XXXX &amp;&amp; row.DateA &gt; row.DateB){<br>myModel.updateRow(row,myField, myValue);<br>}<br>});

How much do they pay you Moshe?


That’s a good question… : )


Thanks Moshe! We do very much appreciate our champions.  Hopefully undying gratitude is sufficient compensation.  


2c001c4cfb0d155b4a0c858f4579a44464c4f03b.png


We might just have to put that on a Tee Shirt!