- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Here is the corrected code..
You have used count and price as variables. I renamed them so that their names don't clash with the reserved words.
Place it in the Calculate event of the Total. Change the field types to Numeric instead of TextFields for all the three.
var intCount = field1.rawValue;
if(intCount eq NULL) then
intCount = 0;
endif
var intPrice = field2.rawValue;
if(intPrice eq NULL) then
intPrice = 0;
endif
if(intCount ne 0) then
$.rawValue = intCount * intPrice;
else
$.rawValue =0;
endif
Thanks
Srini