Skip to main content
Nintex Community Menu Bar
Question

Javascript Issue with skuid platform?

  • July 11, 2024
  • 4 replies
  • 7 views

Forum|alt.badge.img+8

Does anyone know why this function wouldnt be recognized on skuid platform?

dateVar.setTime(dateVar.getTime())

I receive an error

“There was a problem rendering a component of type skootable: dateVar.getTime is not a function”




This topic has been closed for replies.

4 replies

Forum|alt.badge.img+4

I seemed to be able to make it work. Do you have your snippet? Are you loading

$ = skuid.$;

snippet: ![](https://us.v-cdn.net/6032350/uploads/attachments/RackMultipart20171102-3888-a96wf4-Screen_Shot_2017-11-01_at_7.34.40_PM_inline.png "Image https//d2r1vs3d9006apcloudfrontnet/s3\_images/1668241/RackMultipart20171102-3888-a96wf4-Screen\_Shot\_2017-11-01\_at\_73440\_PM\_inlinepng1509590191") console log: ![](https://us.v-cdn.net/6032350/uploads/attachments/RackMultipart20171102-92722-66xq8x-Screen_Shot_2017-11-01_at_7.34.27_PM_inline.png "Image https//d2r1vs3d9006apcloudfrontnet/s3\_images/1668242/RackMultipart20171102-92722-66xq8x-Screen\_Shot\_2017-11-01\_at\_73427\_PM\_inlinepng1509590199")

Forum|alt.badge.img+8
  • Author
  • Novice
  • July 11, 2024

$ = skuid.$;

var model = skuid.$M(‘Contacts’);
var row = model.getFirstRow();
var dateVar = row.LastContact;

dateVar.setTime(dateVar.getTime());

model.updateRow(row,{LastContact : dateVar});



Forum|alt.badge.img+8
  • Author
  • Novice
  • July 11, 2024

Realized that we hadnt converted the milliseconds back to a date … but still no joy

var params = arguments[0],

$ = skuid.$;

var model = skuid.$M(‘AllContacts’);
var row = model.getFirstRow();
var dateVar = row.LastContact;
var now = dateVar.getTime();

var date = new Date(now);

model.updateRow(row,{LastContact : date});



Forum|alt.badge.img+8
  • Author
  • Novice
  • July 11, 2024

Done … Thanks for the assist

var params = arguments[0],

$ = skuid.$;

var model = skuid.$M(‘AllContacts’);
var row = model.getFirstRow();
var dateVar = new Date();
var now = dateVar.getTime();

var date = new Date(now);

model.updateRow(row,{LastContact : date});