Skip to main content
Nintex Community Menu Bar
Question

Define $.each for a model based on filter criteria

  • July 9, 2024
  • 6 replies
  • 14 views

Forum|alt.badge.img+8

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?

This topic has been closed for replies.

6 replies

Forum|alt.badge.img+9
$.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>});

Forum|alt.badge.img+8

How much do they pay you Moshe?


Forum|alt.badge.img+9

That’s a good question… : )


Forum|alt.badge.img+17
  • Nintex Employee
  • July 9, 2024

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


Forum|alt.badge.img+9

2c001c4cfb0d155b4a0c858f4579a44464c4f03b.png


Forum|alt.badge.img+17
  • Nintex Employee
  • July 9, 2024

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