This is a migrated thread and some comments may be shown as answers.

Help With ReportField - ReportField

1 Answer 27 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 03 Nov 2014, 09:40 PM
I have a report which contains the following fields:
TotalAdmin (Invoice Total)
tmpInvoicePaymentAmount (Payment Total)

In textBox25 have the following Expression =Sum(Fields.TotalAdmin)
In textBox26 have the following Expression =Sum(Fields.tmpInvoicePaymentAmount)

I need to have textBox27 = textBox25 - textBox26


1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 06 Nov 2014, 12:40 PM
Hello Mark,

In case the described text boxes are in the same data scope, you can use the following expression to calculate textBox27's value:

= Sum(Fields.TotalAdmin) - Sum(Fields.tmpInvoicePaymentAmount)

If the text boxes are contained in different scopes you may need to use the Exec(scope, expression) data function.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Report Designer (standalone)
Asked by
Mark
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or