Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    List Grid GWT-RPC Json String not loading

    Hi all,
    I have a problem in loading list grid with JSON String data. I have jsonstrign in server side. this will be retuened and will get loaded into listgrid automatically.

    Code:
    return "[      { user: { User ID: 1, name: abc}, 				 				
            	    initial:A,   
    		  }, 								
    		  { user: { User ID: 2, name: xyz}, 					
    		    initial:B,  				
    		  }  
    	 ]";
    i have converted this string into json and mapped to listgrid. Now that problem is that String is successfully returned from server side but few of the fields are not loaded into grid. i.e. for fileds like initial is assigned (since it is directly mapped. but for User ID - its not loading any data. Even i hav setted the valueXPath for that like

    Code:
    useridfield.setValueXPath("user/User ID");
    but thats not working.

    Even I have tried to fetch all the fields from that json string which returns only user & initial. i don know how to fill the user id & name.
    Pls help in filling the grid with those data from server side. how can i implement t. Thanks in Advance.


    Note: I have removed the "" and extra special chars in that jsonstring for easy understanding.
Working...
X