DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.



Method Summary
void
setLabel(label)
Sets the label of a relation info object used to set multiple child relations for a tree node.
void
setNRelationName(relationName)
Sets the name of a relation info object used to set multiple child relations for a tree node.



Method Details

setLabel

void
setLabel
(label)
Sets the label of a relation info object used to set multiple child relations for a tree node.

Parameters

{String} label

Returns

void

Sample

var companies_binding = elements.myDbTreeView.createBinding('example_data', 'companies');
var company_relations = new Array();
company_relations[0] = elements.myDbTreeView.createRelationInfo();
company_relations[0].setLabel('Employees');
company_relations[0].setNRelationName('companies_to_employees');
companies_binding.setNRelationInfos(company_relations);
 

setNRelationName

void
setNRelationName
(relationName)
Sets the name of a relation info object used to set multiple child relations for a tree node.

Parameters

{String} relationName

Returns

void

Sample

var companies_binding = elements.myDbTreeView.createBinding('example_data', 'companies');
var company_relations = new Array();
company_relations[0] = elements.myDbTreeView.createRelationInfo();
company_relations[0].setLabel('Employees');
company_relations[0].setNRelationName('companies_to_employees');
companies_binding.setNRelationInfos(company_relations);