Skip to end of metadata
Go to start of metadata



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



  • No labels