I need load different database/tables depending on each user is loged in. I have tried the most obvious options but unsucessfully. I tried to modify the view object property url/save at onBeforeLoad event. I used onBeforeLoad inline, because it does not fires when attached externally. Below one of the options:
onBeforeLoad: function(id){
var acc = localStorage.getItem(’_account’);
var account = JSON.parse(acc);
$$(“datatree1”).define(“url”, “php/wpt” + account.path + “_datatree.php”);
$$(“datatree1”).define(“save”, “connector->php/wpt” + account.path + “_datatree.php”);
$$(‘datatree1’).refresh();
return true;
}