dataProcessor can not work

Hi Sir,

I use tabbar function insert the grid, the data can load in the grid, but it can not change. It may the dataProcessor can not work. Could you help what problem is.
Thank you.

Best Regards,
Kenneth

var tabbar = dhxLayout.cells(“b”).attachTabbar();
tabbar.setImagePath(“dht/tabbar/codebase/imgs/”);
tabbar.setSkin(“dhx_skyblue”);
tabbar.addTab(“a1”,“Aug 21 - Sep 20”,“130px”);
tabbar.addTab(“a2”,“Sep 21 - Oct 20”,“130px”);
tabbar.setTabActive(“a1”);

array_num = ["a1","a2","a3","b1","b2","b3"]; //but as i see you haven't such tas like "b3"
for(var i = 0; i <= 5; i++){
//line here was deleted
if(array_num[i] == "a1"){
	
	var dhxGrid = tabbar.cells(array_num[i]).attachGrid(); 
	[b]dhxGrid.loadXML("lib/get_away_from_office.php");[/b]

}else if(array_num[i] == "a2"){

	var dhxGrid = tabbar.cells(array_num[i]).attachGrid(); 
	[b]dhxGrid.loadXML("lib/get_away_from_office1.php");[/b]
		
}
    [b]var dp = new dataProcessor("away_from_office_connector.php");
dp.init(dhxGrid);[/b]

Code looks correct, if issue still occurs please provide a demo link or any kind of sample, where issue can be reconstructed.

Hi Sir,

Thank you for your reply. Please find the attached file. This is the mysql database and the main page is test2.htm.
Thank you very much again.

Best Regards,
kenneth
demo.zip (404 KB)