php-reports icon indicating copy to clipboard operation
php-reports copied to clipboard

How to Pass SQL for dynamic select options in Variable Header

Open ghost opened this issue 11 years ago • 5 comments

Hi @jdorn ,

I want to pass an SQL to variable header select options, but I am unable to do using phpReports Include Header. Please provide any solution as early as possible.

Thanks, Sreekanth

ghost avatar Apr 22 '14 07:04 ghost

Use the database_options property to populate a variable select box from a database. http://jdorn.github.io/php-reports/#VariableHeader

jdorn avatar Apr 22 '14 14:04 jdorn

Thanks JDorn for your quick response.

ghost avatar Apr 22 '14 16:04 ghost

Hi, could you show me an example ?

my code doesn't work...

fillipevieira avatar Aug 25 '17 19:08 fillipevieira

Hi jdorn,

For MySQL reports, it's possible to use database_options to bring in dynamic options for a select variable but the same can't be possible for PHP Reports, the select input remains blank. How do we go about this? Thank you.

See the attached screenshot. phpreport

haglerw avatar Aug 31 '18 09:08 haglerw

@haglerw Same issue here, did you find a solution ?

apcloic avatar Feb 12 '19 15:02 apcloic