« Return to Thread: How to build table from List data

How to build table from List<Hashtable> data

by Ashish Kulkarni-2 :: Rate this Message:

Reply to Author | View in Thread

Hi
One of my method returns data as List<Hashtable<String, String>> data
How can i build a table from this sort of data, i tried as below

function showRouting(list)
{

document.getElementById("routing").style.visibility = "visible";
if(list !=null)
  {
    dwr.util.addRows("routingBody", list, cellFuncs,  { escapeHtml:false });
  }
}
var cellFuncs = [
  function(data) { return data.get('NYNAME'); },
   function(data) { return data.get('ABC'); },
   
 ];

 « Return to Thread: How to build table from List data