Error in generate.php when coltype=co

Hi,

I have a grid with three columns set as co.
PDF exports work fine when I alter them to ed but breaks with the following error when set to co:

\grid-pdf-php\generate.php at 20 : simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Unescaped '<' not allowed in attributes values

These two options is set in the grid.php file:

[code] $options_vlan = new OptionsConnector($res);
$options_vlan->render_sql(“SELECT ip AS value, ip AS label FROM port_ip_address ORDER BY ip ASC”,“”,“ip(value),ip(label)”);

$options_direction = new OptionsConnector($res);
$options_direction->render_sql("SELECT direction AS value, direction AS label FROM port_direction ORDER BY direction ASC","","direction(value),direction(label)");[/code]

I can’t seem to find any information on this at all…

I tried to attach the errorreport file but it was not allowed, so here is the three top rows of that file:

<rows profile='color'><head><columns><column width='130' align='center' type='co' hidden='false' sort='str' color=''><![CDATA[Source]]><option value='10.157.114.145'>10.157.114.145</option><option value='10.157.253.95'>10.157.253.95</option><option value='10.160.150.0/24'>10.160.150.0/24</option><option value='10.160.151.0/27'>10.160.151.0/27</option><option value='10.160.151.128/25'>10.160.151.128/25</option><option value='10.160.151.140'>10.160.151.140</option><option value='10.160.151.142'>10.160.151.142</option><option value='10.160.151.143'>10.160.151.143</option><option value='10.160.151.8/29'>10.160.151.8/29</option><option value='192.168.57.0/24'>192.168.57.0/24</option><option value='192.168.58.0/24'>192.168.58.0/24</option><option value='192.168.58.20'>192.168.58.20</option><option value='BBT LAN'>BBT LAN</option></column><column rowspan="2" width='65' align='center' type='co' hidden='false' sort='str' color=''><![CDATA[Direction]]><option value='<=='><==</option><option value='<==>'><==></option><option value='==>'>==></option></column><column width='130' align='center' type='co' hidden='false' sort='str' color=''><![CDATA[Destination]]><option value='10.157.114.145'>10.157.114.145</option><option value='10.157.253.95'>10.157.253.95</option><option value='10.160.150.0/24'>10.160.150.0/24</option><option value='10.160.151.0/27'>10.160.151.0/27</option><option value='10.160.151.128/25'>10.160.151.128/25</option><option value='10.160.151.140'>10.160.151.140</option><option value='10.160.151.142'>10.160.151.142</option><option value='10.160.151.143'>10.160.151.143</option><option value='10.160.151.8/29'>10.160.151.8/29</option><option value='192.168.57.0/24'>192.168.57.0/24</option><option value='192.168.58.0/24'>192.168.58.0/24</option><option value='192.168.58.20'>192.168.58.20</option><option value='BBT LAN'>BBT LAN</option></column><column width='80' align='center' type='ed' hidden='false' sort='str' color=''><![CDATA[TCP]]></column><column width='80' align='center' type='ed' hidden='false' sort='str' color=''><![CDATA[UDP]]></column><column rowspan="2" width='400' align='left' type='ed' hidden='false' sort='str' color=''><![CDATA[Description]]></column></columns></head> <row><cell><![CDATA[BBT LAN]]></cell><cell><![CDATA[<==>]]></cell><cell><![CDATA[10.160.151.8/29]]></cell><cell><![CDATA[3389]]></cell><cell><![CDATA[ ]]></cell><cell><![CDATA[Remote Desktop]]></cell></row> <row><cell><![CDATA[BBT LAN]]></cell><cell><![CDATA[<==>]]></cell><cell><![CDATA[10.160.151.140]]></cell><cell><![CDATA[8080]]></cell><cell><![CDATA[ ]]></cell><cell><![CDATA[Jenkins usage]]></cell></row>

Can someone please tell me if this is a bug or if I’m doing something wrong… :question:

No one :question: :open_mouth:

Hi,
sorry for the delay in answerring.
Actually it’s incorrect behavior.
Please, try to update dhtmlxgrid_export.js from attachment. If still doesn’t work, could you attach the whole error_reporting file (you may compress it into zip-file)?
dhtmlxgrid_export.zip (2.81 KB)

Hi,
Thanks for the reply :slight_smile:
But, sorry to say, the problem persists…

Attaching errorlog as zipfile
error_report_2012_06_04__13_30_11.zip (1.54 KB)

Hi,
please, update file dhtmlxgrid_export.js from attachment, it includes fix.
dhtmlxgrid_export.zip (2.89 KB)

Thanks!

Works like a charm now… :smiley: