- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2018 07:33 AM
Hi
I have created a table with 3 Decimal columns. I want to have a field that just sums the 3 columns together and displays that total in the default view for the record. Nothing complex in that I would have thought.
However I cant get it to work using either a Calculated Field or a Function Field. There seems to be a real lack of documentation re how function fields work with examples.
Anyone advise what is the best way to do this and if either calc field or function field, some sample code to achieve
My calculated field code was:
return total2;
//return "42.0"; // this was to see if basic retun to calc field was working. It was not.
Thanks in advance
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2018 01:27 PM
did you try below
return total2;
//return "42.0"; // this was to see if basic retun to calc field was working. It was not.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2018 01:27 PM
did you try below
return total2;
//return "42.0"; // this was to see if basic retun to calc field was working. It was not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2018 01:27 AM
This worked thanks. Not sure what the issue was before but is resolved now.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2018 06:35 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2020 05:50 PM
This was a couple of years ago I know however wanted to ask. can I add to the script to see if the toal matches one of 5 numbers. If so, not changes, if not, pop-up an alert?
What i have is are lease rates that can be split across 10 department numbers. Adding it up works, just want to create some sor tof validation if the total does not equal number. For the example we product 1 which can only be say 75 or 100 and Product 2 which can only add up to 100 150.