Can someone give me a quick thumbs up/down on my syntax?
var $ = skuid.$;<br>var mSTD = skuid.$M('STDTest');<br><br>$.each(mSTD, function(i, row){ <br> value += row.STD__c + ' (' + row.Results__c + ') '; });
If my model STDTest has two rows:
Row 0 has STD__c: HSV1, Results: Negative
Row 1 has STD__c: HIV, Results: Positive
I’m trying to produce a text variable ‘value’ that would look like:
'HSV1 (Negative) HIV (Positive) '
Am I understanding the way $.each works?