Reply
 
LinkBack Thread Tools Display Modes
Old 02-27-2008, 01:57 PM   #11 (permalink)
RickC
Guest
 
Posts: n/a
Default

Originally Posted by Memphix View Post
RickC,

Is there a document that shows what other fields are available like TotalItemPrice? or can this be found in the Data Explorer somewhere?
The TotalItemPrice is a method off the ReportUtilities object that is available to all reports that are generated in the context of D-Tools. It was originally built for internal use to wrap a number of repeated bits of logic, but is available for calls externally. All the methods on this object are defined here:

ReportUtilities API

I believe there is a brief explanation for all of the calls and some have short examples. All are desinged to do specific tasks, whether it be returning values (per item or on the project total) or shortcuts/helper functions to set/read values from controls on the report.

There are two help files in there. One for the reportutilities class and one for the "Item". The item is an object representation of the data available when a user is iterating over "Items" or "ProposalItems" in a report.

Many of the examples where a value is calculated on a record by record basis leverage this.

Basically, if you're inventive, you can use the values on the item to calculate just about anything you may be looking for.

Also, I can't emphasize enough that a better understanding of how a report is generated will come from spending some time looking here:

http://www.datadynamics.com/Help/ARN...rts3_start.htm

The section in the users guide called "Concepts" is worth the read.

Also, using the "Summary" properties on the textbox controls for totalling/subtotalling is definitely worth understanding.

That may be more than you were looking for, but I hope I answered your question.

Originally Posted by Memphix View Post
To spell out the textbox properties from RickC's help above:
(Name) txttotPrice
DataField totPrice
OutputFormat C

I've inserted the tax amount before that total. Just drag and drop "dtr:Total" onto the page found in the Data Explorer here:

+dtr:ProjectTaxes
+dtr: ProjectTax
-dtr: Description
-dtr: Labor
-dtr: Equipment
-dtr: Total

and format it by putting "C" in its OutputFormat field within Properties.
Just on a side note about this.

This will work fine for anyone who has their tax country set to "Standard", "Australia", or "New Zealand" since there is only ever one record here... You should be good.

If the tax country is set to "Canada", there are two records in this section of the data (one for PST and one for GST).


-R
  Reply With Quote
Old 02-27-2008, 09:52 PM   #12 (permalink)
Senior Member
 
Join Date: Jul 2006
Posts: 182
Memphix is on a distinguished road
Default

Excellent.

Will get stuck into reading that... in the mean time, I've got a custom Wire Checklist that I run By Location.

I'm trying to modify it so its By Location By Zone. It was easy to sort it by this using the Grouping in Report Definitions (adding Zone under Location), but I'd also like to have the Zone labelled on the report.

Is it a GrpDynamicHeader with some script or is it a bit more complicated? Thanks.
Memphix is offline   Reply With Quote
Old 02-29-2008, 01:07 PM   #13 (permalink)
RickC
Guest
 
Posts: n/a
Default

Originally Posted by Memphix View Post
Excellent.

Will get stuck into reading that... in the mean time, I've got a custom Wire Checklist that I run By Location.

I'm trying to modify it so its By Location By Zone. It was easy to sort it by this using the Grouping in Report Definitions (adding Zone under Location), but I'd also like to have the Zone labelled on the report.

Is it a GrpDynamicHeader with some script or is it a bit more complicated? Thanks.

Add a group section to the report. make sure it's ordered below the grpDynamicHeader1 section.

Change it's name to GrpDynamicHeader2

Add a textbox to the new section

Name the textbox: txtDynamicHeader2

Save and publish.

No script. We achieve dynamic grouping by looking for the sections with the specific names and then the controls in the sections with specific names.

-R
  Reply With Quote
Old 03-05-2008, 08:11 PM   #14 (permalink)
Senior Member
 
Join Date: Jul 2006
Posts: 182
Memphix is on a distinguished road
Default

Perfect! Thanks.
Memphix is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combined Report, Proposal with Cost summary and Hours Tim Neill Reports and Reporting Center 1 02-29-2008 01:02 PM
Proposal Mauricio Reports and Reporting Center 0 12-21-2007 09:14 PM
Proposal Filtering Options (Custom Proposal Creation) priblejr Reports and Reporting Center 5 10-01-2007 04:57 PM
Custom Proposal - Page Wise. jdhone Reports and Reporting Center 2 07-18-2007 08:33 PM
How Do I Change The Client A Proposal Is Connected To? PsiKoTicK 'How Do I' Questions 3 10-03-2006 11:36 PM


All times are GMT. The time now is 02:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
D-Tools, Inc.