Click here to Skip to main content
15,031,495 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
function TotalAdditionalCostPostRunFormatter(cellvalue, options, rowObject) {
       return AddCommas((rowObject.TotalAdditionalCostPostRun).toFixed(2));
   }
Posted
Comments
phil.o 30-Oct-15 10:05am
   
This is not C# code. Please tag your question correctly.
CHill60 30-Oct-15 10:08am
   
Break down your return statement so you can see what is going on e.g.
var ro = rowObject.TotalAdditionalCostPostRun;
var roFixed = ro.toFixed(2);
var ac = AddCommas(roFixed);
return ac;
One of those values is null - use your debugger to determine which one and why
Sinisa Hajnal 30-Oct-15 10:11am
   
Seconded! CHill60, you should post this as the solution. This is one of the easiest errors to resolve.
CHill60 30-Oct-15 10:13am
   
LOL! F-ES Sitecore has done the deed :-)

1 solution

rowObject.TotalAdditionalCostPostRun is null. Given the information you've supplied that's as much advice as we can offer.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900