Hi all,
I have struggled with this for a while but it is now urgent. My javascript is not anywhere near good.
I have a
Model - called Dates
Field 1 : {{Date}}
Field 2 : {{Days}}
Field 3 : {{NewDate}}
I would like to get a snippet that runs to add Days to Date and insert NewDate
I tried this… but wrong 😦
var params = arguments[0], $ = skuid.$;
var model = skuid.$M(‘Dates’);
var row = model.getFirstRow();
var dateVar = row.Date;
var daystoadd = row.Days;
dateVar.setDate(dateVar.getDate() + daystoadd);
model.updateRow(row,{NewDate : dateVar});
Can anyone see where I have screwed up )
Question
Javascript for adding days to a date field on Skuid Platform?
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.