Querying a stylized list with dynatable

 Example to query a table for a certain value: query from dynamic generated drop down list from the array of objects. var dyna = $j('#serverDetails') .dynatable({ dataset: { records: window.xData, //array of objects perPageDefault: 20 }, features: { paginate: true, sort: true, pushState: false, //must be false if not got error search: false, recordCount: true, …

Continue reading Querying a stylized list with dynatable

How to use C# LinQ similar method in JavaScript

Below is a simple example to help understand the usage of the code: var arr = [ {name: 'a', val:1}, {name:'b', val:2}, {name:'c', val:3}, {name:'d', val:4}, {name:'e', val:5}, {name:'f', val:6}, ]; //jquery map var nm = $.map(arr,function(v){ return v.val; }); $("#box").html("jquery map: "+nm); //array map var nm = arr.map(function(v){ return v.val; }); $("#box2").html("array map: "+nm); …

Continue reading How to use C# LinQ similar method in JavaScript

NHibernate to handle search and paging from stored procedure

Basically my task is to create a page that display data in grid, able to filter (search), and print the data I retrieve from a stored procedure using NHibernate. I will pass a filter with few parameter into the SP to retrieve the data to be display. In xml file, I have added 'sql-query' query …

Continue reading NHibernate to handle search and paging from stored procedure