Hi everyone,
Yesterday downloaded Webix, looks great.
Now trying to make it work with MySQL DB, spent already 2 days while trying to configure it - no success.
Checked all samples, it refers to sqlite and seems that config has different format than the one needed to configure for MySQL.
Here is my data.php:
romanr@MonitoringSystem:/var/www/tttool_mod/public_html/data$ more data.php
<?php
require_once("data_connector.php"); //!connector
$dbtype = "MySQL";
$conn = mysql_connect(10.240.105.60, "roman","Pass");
$data = new JSONDataConnector($conn, $dbtype);
$data->render_table("TRACKERS_MOD_TIME","TRACKER_NAME","TRACKER_NAME, TRACKER_MOD_TIME");
?>
romanr@MonitoringSystem:/var/www/tttool_mod/public_html/data$
data_connector.php has been just copied from samples.
here my index.html:
romanr@MonitoringSystem:/var/www/tttool_mod/public_html/data$ more ../index.html
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" href="codebase/webix.css" type="text/css">
<script src="codebase/webix.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript" charset="utf-8">
webix.ready(function(){
/* webix.ui({
rows: [
{ view:"toolbar", id:"mybar", elements:[
{ view:"button", value:"Add", width:70 },
{ view:"button", value:"Delete", width:70 },
{ view:"button", value:"Update", width:70 },
{ view:"button", value:"Clear Form", width:85}]
},
{ cols:[
{view:"form", id:"myform", width: 200, elements:[
{ view:"text", name:"ticketID", placeholder:"Work Order ID", width:180, align:"center"},
{ view:"button", value:"Get status", width:120, click:"getWOStatus" },
{ view:"text", name:"woNewStatus", placeholder:"WO new status", width: 180, align:"center"},
{ view:"button", value:"Set new status", width:120 },
{}
]},
{ template:"Column 2" }]
}
]
});
*/
});
$$("grid").load("data/data.php");
</script>
</body>
</html>
romanr@MonitoringSystem:/var/www/tttool_mod/public_html/data$
I am just trying to get some data from DB but it just shows empty page
Can anyone point to the error or provide some sample config and page file so I can use it as template?