I am currently trying to build a computed column that computes the difference in seconds between two date-time values. The catch is that one of the two values can be null. It is a String-type computed column and here is the code that I am using:
if(row["time2"].value == null)
return "";
else
return BirtDateTime.diffSeconds(row["time2"],row["time1"]);
The error I get is very generic stating that the javascript expression is invalid.
Any help would be appreciated