Hi,
I'm using infopath 2007 to create some security reports. After I generate my reports I would like to have totals of each section from section from this report. I've been reading how to do this with xpath, but I honestly don't get how to make this with the COUNT(../my:field1:field2) option. Any help is very appreciated. I apologize for the huge letter, but I wanted to explain as much as possible my situation.
Basically I run a query with a report number and it populates in two Views. My Policy view (Repearting View) and a Summary View (non repeating text boxes)
Policy View has items from 1 to 110 in a repeating table with this structure (this list populates just fine)
Tracking Number - SI - Requirement - COMPLIANT? - Type
Autonumber 1 Fix and Resend No A
Autonumber 4 Fix and Resend No A
Autonumber 33 Fix and Resend Yes B
Autonumber 105 Fix and Resend No C
Summary View has the following non-repeating textboxes
Total of non-compliant items = In this case should be 3
Total of Type A = 2
Total of Type B = 0 * Because the item is compliant
Total of Type C = 1
Here is my db structure. I created 3 separate fields where to count this data.
myfields
datafields
d:CSAR
Type (* A B or C)
CountA
CountB
CountC
CountALL
And finally this is my criteria that...does not really work:
CountALL default value= count(@SI_[. and @Status = "No"]) - "Count all SI if the Status is equal to No"
CountA=count(../CSAR/CountA) + 1
CountB=count(../CSAR/CountB) + 1
CountC=count(../CSAR/CountC) + 1
Thanks in advance,
Carlos