Follow us: Connect on YouTube Connect on YouTube Connect on YouTube

Pages

Monday, 11 November 2019

Display Running Total in RTF xml Reports



Running Total means previous value need to add to current values as shown below.

Running Total Sample xml rtf report




Display your Running total by following two steps.


Let us take example from salary column from EMP table as shown below for running total in rtf xml report




Step1:  Define Variable with initialize it to 0 before group start as shown below 

            <?xdoxslt:set_variable($_XDOCTX, 'empsal', 0)?>

Running Total Variable Define xml reports

Step2: Refer variable in running total column as shown below.


  <?xdoxslt:set_variable($_XDOCTX, 'empsal', xdoxslt:get_variable($_XDOCTX, 'empsal') + SAL)?> <?xdoxslt:get_variable($_XDOCTX, 'empsal')?>


Runing Total Output:




Share this article :

0 comments:

Post a Comment