Crystal1Report
Programmer
Hello,
I am new about sharedvalue formula. I have three groupings. And I suppress detail sections. All fields displayed in group #3 (by using formula, running total, etc from the detail section). I want to add value from one field from group header #3 and put a sum into group footer #2. The grouping is like Department (G#1), Menu (G#2), and Menu choice (G#3). Remember that I can't use the summary function from right clik - Insert... since I got the field into groupheader (#3) after using different formulas. What I need is just add the values displayed in different rows of the group header(Group header G#3 row 1 + Group header G#3 row 2 +Group header G#3 row 3, etc etc) and put the result group footer(#2)or Group header (#2). Is there anyone help me....
Actually I tried sharedvariable like
Group header-- G#2
Whileprintingrecords;
Global numbervar Total:=0
//I don't know where I put this.
whileprintingrecords;
Global NumberVar Total:={@Numberorder};
numbervar Maxnumberordered := Maxnumberordered + Total;
Total
//When I put in the Group header #3 then it adds the menu
//#1 sum into menu #2. But what I want is all
//menu must get their own sum. And at the end all sum from each menu will put together on parent department group footer(menu#1 + menu#2 + menu #3...)
Group footer--G#2
whileprintingrecords;
Global numbervar Maxnumberordered;
I am new about sharedvalue formula. I have three groupings. And I suppress detail sections. All fields displayed in group #3 (by using formula, running total, etc from the detail section). I want to add value from one field from group header #3 and put a sum into group footer #2. The grouping is like Department (G#1), Menu (G#2), and Menu choice (G#3). Remember that I can't use the summary function from right clik - Insert... since I got the field into groupheader (#3) after using different formulas. What I need is just add the values displayed in different rows of the group header(Group header G#3 row 1 + Group header G#3 row 2 +Group header G#3 row 3, etc etc) and put the result group footer(#2)or Group header (#2). Is there anyone help me....
Actually I tried sharedvariable like
Group header-- G#2
Whileprintingrecords;
Global numbervar Total:=0
//I don't know where I put this.
whileprintingrecords;
Global NumberVar Total:={@Numberorder};
numbervar Maxnumberordered := Maxnumberordered + Total;
Total
//When I put in the Group header #3 then it adds the menu
//#1 sum into menu #2. But what I want is all
//menu must get their own sum. And at the end all sum from each menu will put together on parent department group footer(menu#1 + menu#2 + menu #3...)
Group footer--G#2
whileprintingrecords;
Global numbervar Maxnumberordered;