Hi everybody,
i am using smart client 7.0rc and i have a TreeGrid. Now i want that a special child node in the tree is selected on page load.
this is my code:
userTree.filterData({'id': ${param.id}},
function (dsResponse, data, dsRequest) {
var myTree = userTree.data;
var orgName = "${param.parentName}";
userTree.openFolder(myTree.find("name",orgName));
var subOrgName = "${param.name}";
userTree.selectRecord(myTree.find("name",subOrgName));
userList.fetchData({'organization.id' : ${param.id}});
}
});
i get the following error:
_1 is undefined
[Break on this error] ,isc.A.indexOf=function(_1,_2,_3,_4,_5){…!=null)return this.findIndex(_8,_1[_8])}
does ‘selectRecord’ work in combination with ‘find’? the child node is marked but the window is frozen
thanks for help in advance.