Hi Team!
I’m running the snippet below from a model action (when the Status__c field is updated on the model), to create a new row:
//Run this when Status is updated on model.<br>var $ = skuid.$,<br> arg = argumentst0],<br> m = arg.model,<br> r = arg.row;<br>console.log(m,r);<br>console.log(r.Status__c);<br>if (r.Status__c == 'No show'){<br> m.createRow({<br> additionalConditions:s<br> {Patient_Case__c: r.Patient_Case__c},<br> {Interaction_Category__c: 'Scheduling'},<br> {Interaction_Purporse__c: 'No show follow-up'},<br> {Interaction_Type__c: 'Call'},<br> {Status__c: 'Scheduled'},<br> {Date__c: skuid.time.getSFDateTime( new Date() )}<br> ]<br> });<br> m.save();<br>}
I’m getting this javascript error:
Here’s skuid_SkuidJS:formatted around line 3136:
Any thoughts on this one?