I have a Skuid detail page with two models: meeting and invitees. I have a field set for the meeting at the top (for one record whose id is passed in as a parameter) with a related list (table) of invitees below. I have a page title at the top with an action that runs a snippet. In the snippet I’m trying to copy the value of the Subject field from the meeting to all of the invitees, save the meeting and the invitees (as the user may have updated fields everywhere), then redirect to another page. I’m nearly there, but I can’t work out the save and redirect routine. At present the only way I can get it working is for my snippet to do the field copy, then to do the save and redirect in a standard save action, which is obviously a two step process. How can I make the snippet do everything? Here’s the snippet as it stands without the save and redirect: var $ = skuid.$; // Get references to our Models var models = skuid.model.map(); var meeting = models.Meeting; var invitees = models.Invitees; // Select the meeting first row var selectedMeeting = meeting.getFirstRow(); // Set the subject for each invitee from that of the meeting $.each(invitees.data,function(i,row){ invitees.updateRow(row,{ cloupra__Meeting_Subject__c: selectedMeeting.Subject }); }); And here’s a screenshot of the page: 
Question
How to make a snippet save and redirect?
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.