var d = document1.getItemValueDate(“lastMaintRep1”);
if(d == null) {
return “date is empty or doesn’t exist.”
} else {
return d.toLocaleString();
I have a computed field on an xpage that does not want to work!!
Not sure what I am doing wrong
The xpage has a date field lastMaintRep (last maintenance report date in real life)
I have another field with number of days until the next maintenance is due (field name is Frequency)
I need a computed field to show the date of the next due maintenance by taking the last date and adding on the frequency (in days) @ adjust etc
Thanks