PDO and connector

Hi guys,
I try the following:
index.html:

webix.ready(function(){
        webix.ui({
            type:"line",
            container:"module_wrapper",
            rows: [
                { template:"Left Col"},
                {  view:"treetable",
                    columns:[
                        { id:"cat_id",        header:cat_id,        width:20  },
                        { id:"cat_image",     header:cat_image,     width:80  },
                        { id:"parent_id",            header:parent_id,            width:100 }
],
                    dataFeed: "/data/cat_dyn.php"}
            ]
        });
    });

cat_dyn.php:

require("../connector/data_connector.php");
//require("../connector/base_connector.php");
require("../connector/db_pdo.php");
$db = new db( $server, $username, $password, $options, $attributes);



$data = new DataConnector($db, "PDO");
$data->dynamic_loading(30);


$data->render_table("cats","cat_id","cat_id, cat_image, parent_id");

The result comes in perfext XML but the values and rows are not beeing displayed.

If I try $data = new JSONDataConnector($db, “PDO”); an error occurs and tells that there is no class like JSONDataConnector

How can I fill the result data into the indexed columns?

regards gwinger

If you want to use XML, you need to have one extr attribute

datatype: "xml",
dataFeed: "/data/cat_dyn.php" }

http://docs.webix.com/api__link__ui.datatable_datatype_config.html

As for JSONDataConnector - maybe you have some typo in the code, as such class does exist for sure ( samples\common\connector\data_connector.php, line 163 )

Check samples\15_datatable\16_dyn_loading\data\data.php

Also, you may want to check samples\15_datatable\30_treetable\02_dyn_loading.html which shows the data loading into treetable from php script.

You were right, I had a typo. I fixed it and have an incredible great treetable output now.