I have written a script that looks at an employee type to see it it is
equal to a value. If the condition is met it will set the date to the
current day. I know that the date code is correct but the evaluation is
not write. Here is the error I now get.
Workflow Error: Dataitem [fsbTermDate] with expression [
function set() {
var TempemployeeType =
flowdata.get('start/request_formEmployeeType');
if (TempemployeeType == "Non-employee") {
var TermDate = new Date();
TermDate.setDate(TermDate.getDate());
form.setValues("TermDate", form.dateToString(TermDate));
return TermDate.substring(0,8);
}
}
set();
] evaluated to an undefined value.

Before this error I tried something using a Employee Type instead of
EmployeeType. I got:
Workflow Error: Dataitem [fsbTermDate] with expression
[
function set() {
var TempEmployeeType =
flowdata.get('start/request_form/employeeType');
if (TempEmployeeType == "Non-employee") {
var TermDate = new Date();
TermDate.setDate(TermDate.getDate());
form.setValues("TermDate", form.dateToString(TermDate));
return TermDate.substring(0,8);
}
}
set();
] failed to evaluate.


Any ideas? This is in the workflow for a variable name TermDate


--
tussat
------------------------------------------------------------------------
tussat's Profile: http://forums.novell.com/member.php?userid=9882
View this thread: http://forums.novell.com/showthread.php?t=369971