PDA

View Full Version : Problem with JsonStore when the result is less than 5 records



Eliane
15 Mar 2011, 8:04 AM
hello all,
we are having a little problem with the jsonStore:

when the json store contains less then 5 records the grid does not load it, noting that it works fine with a larger number of data

any help is appreciated

find attached part of the code with the json result

Eliane
16 Mar 2011, 1:27 AM
It turned out to be a problem with the server side coding...
For those who might encounter this issue this the original code (java) and how it was solved :

Original :

StringBuffer sb = new StringBuffer();
sb,append(myJsonString);

repsonse.getOutputStream.print(myJsonString);

Solution :
response.setContentType('application/x-json')
StringBuffer sb = new StringBuffer();
sb,append(myJsonString);
Writer out = response.getWriter();
out.print(myJsonString);