> It could be really handy to make the "function" attribute extendable -
> maybe use a CFC to back report calculations, and pass the various
> functions an array of values.  Then, people could subclass the CFC and
> choose to use their custom subclass.

Yes.  The plan is this: you could call either one of the standard supplied
functions like Sum or Max, or you could specify a method in a CFC and pass
it arguments in the form of Tablename_Columnname, and the method would fire
once for each row in the query that feeds the report.  The group results
would be accumulated by the DisplayReport parent tag and then output where
directed by the DisplayReportDetail, DisplayReportGroup,
DisplayReportFooter, and DisplayReportHeader Plum custom tags.

Functions that calculate per-row results (such as unitprice * quantity =
extended) will point to a column alias using an "alias" attribute of the
applicable Plum custom tags, which means they can be aggregated like any
other column values.

Joe, I've noticed that you're very active in CFC development, so I'd really
like to keep you close to the action on this.  If you have any specific
ideas along these lines, or if you think there is a better way to implement
these features, then we are very interested in hearing your thoughts and
criticisms.

Respectfully,

Adam Phillip Churvis
Member of Team Macromedia
http://www.ProductivityEnhancement.com

Download Plum and other cool development tools,
and get advanced intensive Master-level training:

* C# & ASP.NET for ColdFusion Developers
* ColdFusion MX Master Class
* Advanced Development with CFMX and SQL Server 2000



**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:

http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************

Reply via email to