Can not execute example "Getting the Value"

The example can not be executed. The object (result) is undefined. The code snippet is below. What’s wrong?

dtable = webix.ui({
		view:"datatable", 
		columns:
		[
                        { id:"ID", header:"1" },
                        { id:"TITLE", header:"2", width:180 },
                        { id:"YEAR", header:"3", width:180 },
                        { id:"VOTES", header:"4", width:180},
                        { id:"RATING", header:"5", width:180 },
                        { id:"RANK", header:"6", width:180 }
                    ],

		data:
	[	{ ID:1, TITLE:"The Shawshank Redemption", YEAR:1994, VOTES:678790, RATING:9.2, RANK:1}
	]
			
});
		var record = dtable.getItem("The Shawshank Redemption");
		console.log(record);
                var title = record.TITLE;
                console.log(array);
		webix.ajax().post('test3b.php', { action : title }, function (text, xml, xhr) {
		    console.log(text);
});

Check the updated snippet - https://snippet.webix.com/0c4daklw

  • object must have “id” property, not ID
  • getItem takes id as parameter, not the TITLE

Oh, now i see! Thank U a lot)