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:
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");
It looks like you're new here. If you want to get involved, click one of these buttons!