Page 1 of 1

invalid date Error

Posted: Wed Sep 23, 2020 9:35 am
by JRausLH
there is always an Error (see attachment) in my display. But why?
I think that's from onklick event

//
handleRowClick(row);

function handleRowClick(row) {
var value_RecordId = getObj("Grid01").grid.getDataValue(row, "out_RecordId");
var value_SachbearbeiterKz = getObj("Grid01").grid.getDataValue(row, "out_SachbearbeiterKz");
var value_Kundennummer = getObj("Grid01").grid.getDataValue(row, "out_Kundennummer");
var value_CreateDate = getObj("Grid01").grid.getDataValue(row, "out_CreateDate",);
//alert(value);
pui.set("hd_out_RecordId", value_RecordId);
pui.set("hd_out_SachbearbeiterKz", value_SachbearbeiterKz);
pui.set("hd_out_Kundennummer", value_Kundennummer);
pui.set("hd_out_CreateDate", value_CreateDate);

pui.set("HD_Action", '5');
pui.click("HD_BTDisplayData");
}

out_CreateDate is an Date-Field
hd_out_CreateDate is an Date-Field

Re: invalid date Error

Posted: Wed Sep 23, 2020 10:20 am
by Scott Klement
I don't speak German, but it appears to say that the date was provided in the wrong format. I think you have provided it in YYYY-MM-DD format and it is expecting it in DD.MM.YYYY format if I am reading it correctly.