SIMITGROUP / phpjasperxml

This is a php wysiwyg report library
BSD 3-Clause "New" or "Revised" License
44 stars 45 forks source link

Call to undefined function toUpperCase() #71

Closed fauzan1505 closed 3 years ago

fauzan1505 commented 3 years ago

I use Expression in textfield : $F{description}.toUpperCase()

I got error message "Call to undefined function toUpperCase(), Filename ... 1.1\abstractPHPJasperXML.inc.php(2396) : eval()'d code"

can you help me, please..

thanks,

fau

fauzan1505 commented 3 years ago

my temporary solution :

               if (strpos($fm, '.toUpperCase()') !== false) {
                    $fm=substr($fm,0,strlen($fm)-strlen('.toUpperCase()'));
                    $fm=strtoupper($fm);
               }
kstan79 commented 3 years ago

touppercase is java syntax which is not supported. you shall use php way https://github.com/SIMITGROUP/phpjasperxml/wiki/Do-something-beyond-standard-data-source

kstan79 commented 3 years ago

no reply for sometimes, close case