Marketcircle Home Products Support Blog Forums Partners Store
Marketcircle    Forums  Hop To Forum Categories  Extending Daylite  Hop To Forums  Building Reports and Print Layouts    Summing Totals
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Journeyman
Posted
OK - so I use parent.parent.reportData.objects.cachedTotalAmount
to try to sum up my estimate list. I get a list(value1, value2, value3) instead of the sum. So I click on "Evaluate Entire text as mathematical expression. Click OK... double check it to see if the checkbox is saved. Nope. Returns back to unchecked.

Any ideas?
 
Posts: 86 | Location: Southern California | Registered: June 26, 2006Reply With QuoteEdit or Delete MessageReport This Post
AJ
Marketcircle Team
Picture of AJ
Posted Hide Post
Evaluate Mathematical Expression is used then the formala is in the text area. In this case, it is not.

What you want is this:
 parent.parent.reportData.objects.@sum.cachedTotalAmount


or

enclosingReportTable.reportData.objects.@sum.cachedTotalAmount


Notice the @sum.

This stuff is described in the Mathematical Expression area of the Report Engine Guide.

Also, as of 3.2, you don't need to know this nitty gritty. Use a Standard Filter on the Table and in the second pane where you configure the column, select the column (after you've added it to the left side) and chose one of the Summary options.
 
Posts: 940 | Location: Toronto | Registered: May 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Journeyman
Posted Hide Post
Ah yes. Thank you for that. Next question - how do I add up totals from Extra fields? I'm assuming I use F-script on tokens... but haven't figured that out yet.
 
Posts: 86 | Location: Southern California | Registered: June 26, 2006Reply With QuoteEdit or Delete MessageReport This Post
AJ
Marketcircle Team
Picture of AJ
Posted Hide Post
If all the entries in that specific extra field are numbers, then the same technique will work.

enclosingReportTable.reportData.objects.@sum.extra1


Replace extra1 with extra2 through extra12 depending on what you are using.

I'm assuming you are referring to an extra field on the Opportunity.
 
Posts: 940 | Location: Toronto | Registered: May 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Journeyman
Posted Hide Post
Thanks again! I'm starting to see how this works. Is it possible to do something like @count to find out the number of items in a list?
 
Posts: 86 | Location: Southern California | Registered: June 26, 2006Reply With QuoteEdit or Delete MessageReport This Post
AJ
Marketcircle Team
Picture of AJ
Posted Hide Post
If you want to count the total number of objects, you do this:

enclosingReportTable.reportData.objects.count


Objects is a NSArray (Apple Foundation Framework)
NSArray declares a method called count.

HTH
Happy Holidays.
 
Posts: 940 | Location: Toronto | Registered: May 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Journeyman
Posted Hide Post
Is there a way to subtract a start date from the complete date? I want to then run an average of the "aging" calculation. How would I do this?
 
Posts: 86 | Location: Southern California | Registered: June 26, 2006Reply With QuoteEdit or Delete MessageReport This Post
Journeyman
Posted Hide Post
OK - one more question. How do I calculate the average of all Distinct non-null values in a list?

avg([all|distinct] expression)
Average of the (distinct) values in the expression

That's really important as I'm summing up multiple columns of values with some rows that have null values. They are taking my average down a lot.
 
Posts: 86 | Location: Southern California | Registered: June 26, 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Marketcircle    Forums  Hop To Forum Categories  Extending Daylite  Hop To Forums  Building Reports and Print Layouts    Summing Totals

 

Refund Policy | Privacy Policy | Site Map | About Marketcircle
©2008 Marketcircle Inc. All rights reserved.
webmaster@marketcircle.com