Child pages
  • RelationInfo

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Hidden
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


HTML Table
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setLabel(label)
Sets the label of a relation info object used to set multiple child relations for a tree node.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setNRelationName(relationName)
Sets the name of a relation info object used to set multiple child relations for a tree node.

HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idsetLabel
classnode
Table Row (tr)
idname
Table Cell (td)
setLabel
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
setLabel
Span
stylefloat: left;
idiets
(label)
Table Row (tr)
iddes
Table Cell (td)
Sets the label of a relation info object used to set multiple child relations for a tree node.
Table Row (tr)
idprs
Table Cell (td)
Parameters
label
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
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);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetNRelationName
classnode
Table Row (tr)
idname
Table Cell (td)
setNRelationName
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
setNRelationName
Span
stylefloat: left;
idiets
(relationName)
Table Row (tr)
iddes
Table Cell (td)
Sets the name of a relation info object used to set multiple child relations for a tree node.
Table Row (tr)
idprs
Table Cell (td)
Parameters
relationName
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
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);
Table Row (tr)
classlastDetailRow
Table Cell (td)