KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Using @value #2920

Open Richb201 opened this topic on on Dec 28, 2022 - 1 comments

Richb201 commented on Dec 28, 2022

I am totaling a column into @value in footerText. See below. How can I assign @value to a php variable to insert into a different table?

  "dollarsPerBC"=>array(
                    "label"=>"dollars",
                    "cssStyle"=>"text-align:right",
                    "prefix"=>"$",
                    "footer"=>"sum",
                    "footerText"=>"<b>Total Wages for all Qualified Business Components:</b> @value")
            ),

can i just use $iTotal=@value?

Sebastian Morales commented on Dec 29, 2022

I'm afraid it doesn't work like that. You can only use @value in a table's column footer and not across tables. If you need that value for using in another table you can always call the first table's datastore's aggregate methods:

https://www.koolreport.com/docs/datastore/overview/#aggregated-methods-sum

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

None