Page 1 of 2

How to Sum Total in GroupFootBand and ReportFootBand?

Posted: Thu Apr 29, 2010 10:04 pm
by RickyHuang
i ran into some problems when i was designing the reports
--In GroupHeaderBand BS.A--
 XXXXXX

--DataSourceBand DS--
 text1 {IIF(DS.Type == "True",DS.Cash*1,DS.Cash*-1)}
 text2 {DS.Check - DS.DisCount}

--In GroupFootBand--
 How to Summary text1 and text2 to txSumText1 and txSumText2

--In ReportFootBand--
 How to Summary txSumText1 and txSumText2

How to Sum Total in GroupFootBand and ReportFootBand?

Posted: Fri Apr 30, 2010 12:43 am
by Jan
Hello,
--In GroupFootBand--
 How to Summary text1 and text2 to txSumText1 and txSumText2
Please use following expressions:

txSumText1:

Code: Select all

{Sum(IIF(DS.Type == "True",DS.Cash*1,DS.Cash*-1))}
txSumText2:

Code: Select all

{Sum(DS.Check - DS.DisCount)}
--In ReportFootBand--
 How to Summary txSumText1 and txSumText2
Same expressions:

txSumText1:

Code: Select all

{Sum(IIF(DS.Type == "True",DS.Cash*1,DS.Cash*-1))}
txSumText2:

Code: Select all

{Sum(DS.Check - DS.DisCount)}
Thank you.

How to Sum Total in GroupFootBand and ReportFootBand?

Posted: Fri Apr 30, 2010 3:52 am
by RickyHuang
Thanks for your help..


How to Sum Total in GroupFootBand and ReportFootBand?

Posted: Fri Apr 30, 2010 4:54 am
by Andrew
Please let us know if we may be of any further assistance.

Thank you.

How to Sum Total in GroupFootBand and ReportFootBand?

Posted: Sun May 02, 2010 9:45 pm
by RickyHuang
another question

Can we calculate Text in Report'?

ex:
Sum(GroupFootBand4,Text2)

Due to the problem that the same number comes with multi-columns ,there's one column data which will repeat itself once, hence I will filter it out by the group function , and I need to add up all the filtered datas from other groups.
ex:
--GroupHeaderBand1(CustomerID)--
 XXXXXXXX
--GroupHeaderBand2(DeliveryID)--
 A 100 20
 B 200 20
 C 300 20
--GroupFootBand1(DeliveryID)--
     20
--GroupFootBand2(CustomerID)--
     How to Sum GroutFootBand1's Column
 

How to Sum Total in GroupFootBand and ReportFootBand?

Posted: Mon May 03, 2010 9:14 am
by Jan
Hello,

No this is not possible, but you can create varaible (As Function) which can return required value, which can be referenced from text expressions.

Thank you.

How to Sum Total in GroupFootBand and ReportFootBand?

Posted: Mon May 03, 2010 7:58 pm
by RickyHuang
thanks

Can you me how to refernce text expression use variables(as function)?

I tried 『Sum(GroupFooterBand,Text.Text)』 in variables(as function),but it's not work

and

int i;
int n;
for(i=0,i<5,i++)
{
n += i;
};

it's not work too,and get error....
-----------------------------------------
If I got text expresstion ,can i process it and put it into another text?
or
Can i use sql script in report to process my dataset and put it into text?
------------------------------------------
I use customer function to finish it.....
Thanks a lot

How to Sum Total in GroupFootBand and ReportFootBand?

Posted: Tue May 04, 2010 12:49 am
by Jan
Hello,
RickyHuang wrote:thanks

Can you me how to refernce text expression use variables(as function)?
Sorry you can't calculate Text expression in total function. Please create first variable MyVar1 (Function check box is true) with following expression:

Code: Select all

IIF(DS.Type == "True",DS.Cash*1,DS.Cash*-1)
second variable MyVar2 with following expression:

Code: Select all

DS.Check - DS.DisCount
After then you can use following expression in txSumText1:

Code: Select all

{Sum(MyVar1)}
in txSumText2:

Code: Select all

{Sum(MyVar2)}
to sum both values:

Code: Select all

{Sum(MyVar1 + MyVar2)}
Thank you.

How to Sum Total in GroupFootBand and ReportFootBand?

Posted: Tue May 04, 2010 7:45 pm
by RickyHuang
thanks for your help..:feelgood:

How to Sum Total in GroupFootBand and ReportFootBand?

Posted: Tue May 04, 2010 10:33 pm
by Andrew
Always ready to help!

Thank you.