DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE


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
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
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);