This is the server log: pastebin.com/1WiY5u0i
PHP code server side:
require("../codebase4/db_sqlsrv.php");
require("../codebase4/grid_connector.php");
//default sorting
function custom_sort($sorted_by){
//SORT BY some_field ASC
if (!sizeof($sorted_by->rules)) {
$sorted_by->add("Year","DESC");
$sorted_by->add("Country","ASC");
$sorted_by->add("Location","ASC");
$sorted_by->add("PrimaryRefNo","ASC");
}
}
$grid = new GridConnector($conn,"SQLSrv");
$grid->event->attach("beforeSort","custom_sort");
$grid->enable_log("temp.log",true);
$grid->dynamic_loading(100);
$grid->render_sql("SELECT l.* FROM dbo.icd10_list_mimw l left join dbo.icd10_IndCode_MIMW c on l.MemberNo=c.Ind_IOMIndID left join dbo.icd10_invalid_MIMW i on l.MemberNo=i.iomid WHERE c.Ind_IOMIndID is null and i.iomid is null", "MemberNo", "Year,Country,Location,Nationality,PrimaryRefNo,Status,Age,Gender,TB,LTBI,HIV,Mental,Addiction,Pregnancy");
PHP code client side:
icdlist = tabbar_list.cells("a1").attachGrid();
icdlist.setHeader("Year,Country,Location,Nationality,Case,Status,Age,Sex,TB,LTBI,HIV,Mental,Addiction,Pregnancy");
icdlist.attachHeader("#connector_select_filter,#connector_select_filter,#connector_text_filter,#connector_select_filter,#connector_text_filter,#connector_select_filter,#connector_text_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter");
icdlist.attachFooter("<strong>Records:</strong>,{#stat_count},,,,,,,,,,,,<a href='javascript:void(0)' onclick='excelexport()'>Export</a>");
icdlist.setInitWidths("70,70,70,90,80,60,40,50,40,40,40,60,*,*");
icdlist.setColSorting("connector,connector,connector,connector");
icdlist.setEditable(false);
icdlist.attachEvent("onXLS",function(){ dhxLayout.cells("b").progressOn();});
icdlist.attachEvent("onXLE",function(){ dhxLayout.cells("b").progressOff();});
icdlist.attachEvent("onRowSelect", fill_details);
icdlist.attachEvent("onAfterRowDeleted", clear_details);
icdlist.init();
icdlist.enableSmartRendering(true,100);
icdgrid.enablePreRendering(50);
icdlist.load("icdlist_sqlsvr.php")
Thanks,
S. Schillinger