Page 1 of 1

Special character < replace in databand

Posted: Fri May 06, 2016 11:49 am
by programmer2
Hello,

we have a report which load dynamically string data in a databand. When the string contains special char like '<' then the report stop rendering and errors #2332 and #1090 shows up. I am thinking to replace special char on my sql query with < but I'm not sure if it's the easy solution. Anyone who has the same issue? Is there another better solution? Thank you in advance.

Re: Special character < replace in databand

Posted: Mon May 09, 2016 9:46 am
by Jan
Hello,

Can you specify which version of the Reports.PHP you are use? And which version of report engine you are use: JS or Flash?

Thank you.

Re: Special character < replace in databand

Posted: Thu May 12, 2016 8:56 am
by programmer2
Yes, of course. Sorry I didn't mention that information in my initial post: we are using StimulsoftReports.Fx_PHP_2014.1 with the Flash report engine. Thank you.

Re: Special character < replace in databand

Posted: Fri May 13, 2016 8:01 am
by Alex K.
Hello,

In the last version in our adapters is changing these symbols on the server side:
$value = str_replace("&", "&", $value);
$value = str_replace("<", "<", $value);
$value = str_replace(">", ">", $value);

This is a correct way, due to the data is send as XML file. Please check the last version in which this issue is solved.

Thank you.

Re: Special character < replace in databand

Posted: Fri May 13, 2016 11:39 am
by programmer2
Thank you for your clear answer. Sure, I will have a look at the lastest version.

Re: Special character < replace in databand

Posted: Fri May 13, 2016 1:17 pm
by Alex K.
Hello,

Ok.
Let us know if you need any additional help.

Thank you.