3.2.0

problem building cell data

Hi all,

I'm realy new to active widgets and im trying to build the cell data in the jsp from an object from the session.
myCells =[<%StringBuffer record = new StringBuffer();
for(int i=0;i<records.size();i++){
SessionRecords records = (SessionRecords ) request.getSession().getAttribute("records");
record.append('"'+obj.getName()+'"'+","+'"'+obj.getType+'"'...............);

...

grid.setCellText(myCells);


All the things work fine and the table displays fine. The problem is that
obj.getName() can contain a ' " ' in it. When this is encountered the whole thing blows up and the table is not displayed at all. Is there another way of feeding data into the table coz i have multiple fields that can contain ' " ' in them.


Thanks in advance
CB
May 17,
You should replace " (double quote) with \" when building JSON string.
Alex (ActiveWidgets)
May 17,

This topic is archived.

See also:


Back to support forum