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
class
servoy sSummary
Colgroup Tag
Column
padding
0px
width
80px
Column
Table Row (tr)
style
height: 30px;
Table Head (th)
colspan
2
Method Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setCallBackInfo() Set callback method for node selection and double click
Set the dataprovider name to retrieve column name and sort order for the child nodes. The provided data must be a string of form : column_name_used_for_sort sort_order(asc or desc)
Table Row (tr)
id
prs
Table Cell (td)
Parameters dataprovider
Table Row (tr)
id
ret
Table Cell (td)
Returns void
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
//Set the dataprovider name to retrieve column name and sort order for the child nodes.
The provided data must be a string of form : column_name_used_for_sort sort_order(asc or desc)
binding.setChildSortDataprovider('dataprovider');
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
setConfigurationDataprovider
class
node
Table Row (tr)
id
name
Table Cell (td)
setConfigurationDataprovider
Table Row (tr)
id
sig
Table Cell (td)
Span
style
float: left; margin-right: 5px;
void
Span
style
float: left; font-weight: bold;
id
iets
setConfigurationDataprovider
Span
style
float: left;
id
iets
(dataprovider)
Table Row (tr)
id
des
Table Cell (td)
Set configuration dataprovider. Dataprovider must be MEDIA type and returns a configuration object Ex.: var config = new Object(); config.text = 'my_text'; config.nRelation = 'my_n_relation'; config.mRelation = 'my_m_relation'; config.childSort = 'my_sort_field'; config.fontType = 'my_font'; config.toolTipText = 'my_tooltip'; config.hasCheckBox = 'true'; config.checkBoxValue = 'true';
Table Row (tr)
id
prs
Table Cell (td)
Parameters dataprovider
Table Row (tr)
id
ret
Table Cell (td)
Returns void
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
//Set configuration dataprovider. Dataprovider must be MEDIA type and returns a configuration object
Ex.:
var config = new Object();
config.text = 'my_text';
config.nRelation = 'my_n_relation';
config.mRelation = 'my_m_relation';
config.childSort = 'my_sort_field';
config.fontType = 'my_font';
config.toolTipText = 'my_tooltip';
config.hasCheckBox = 'true';
config.checkBoxValue = 'true';
binding.setConfigurationDataprovider('dataprovider');
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
setFontTypeDataprovider
class
node
Table Row (tr)
id
name
Table Cell (td)
setFontTypeDataprovider
Table Row (tr)
id
sig
Table Cell (td)
Span
style
float: left; margin-right: 5px;
void
Span
style
float: left; font-weight: bold;
id
iets
setFontTypeDataprovider
Span
style
float: left;
id
iets
(dataprovider)
Table Row (tr)
id
des
Table Cell (td)
Set the dataprovider name to retrieve the node font from
Table Row (tr)
id
prs
Table Cell (td)
Parameters dataprovider
Table Row (tr)
id
ret
Table Cell (td)
Returns void
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
binding.setFontTypeDataprovider('dataprovider');
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
setHasCheckBoxDataprovider
class
node
Table Row (tr)
id
name
Table Cell (td)
setHasCheckBoxDataprovider
Table Row (tr)
id
sig
Table Cell (td)
Span
style
float: left; margin-right: 5px;
void
Span
style
float: left; font-weight: bold;
id
iets
setHasCheckBoxDataprovider
Span
style
float: left;
id
iets
(dataprovider)
Table Row (tr)
id
des
Table Cell (td)
Set has checkbox flag dataprovider. Dataprovider returns INTEGER (0 / 1 / 2) or STRING (false / true / disabled) for (does not have / have / have but disabled)
Set method to call on click. The callback will be called with the following arguments : returnDataprovider, tableName, mouseX, mouseY
Table Row (tr)
id
prs
Table Cell (td)
Parameters function returnDataprovider
Table Row (tr)
id
ret
Table Cell (td)
Returns void
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
//Set method to call on click.
The callback will be called with the following arguments : returnDataprovider, tableName, mouseX, mouseY
binding.setMethodToCallOnClick(callbackFunction, 'returnDataprovider');
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
setMethodToCallOnDoubleClick
class
node
Table Row (tr)
id
name
Table Cell (td)
setMethodToCallOnDoubleClick
Table Row (tr)
id
sig
Table Cell (td)
Span
style
float: left; margin-right: 5px;
void
Span
style
float: left; font-weight: bold;
id
iets
setMethodToCallOnDoubleClick
Span
style
float: left;
id
iets
(function, returnDataprovider)
Table Row (tr)
id
des
Table Cell (td)
Set method to call on double click. The callback will be called with the following arguments : returnDataprovider, tableName, mouseX, mouseY
Table Row (tr)
id
prs
Table Cell (td)
Parameters function returnDataprovider
Table Row (tr)
id
ret
Table Cell (td)
Returns void
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
//Set method to call on double click.
The callback will be called with the following arguments : returnDataprovider, tableName, mouseX, mouseY
binding.setMethodToCallOnDoubleClick(callbackFunction, 'returnDataprovider');
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
setMethodToCallOnRightClick
class
node
Table Row (tr)
id
name
Table Cell (td)
setMethodToCallOnRightClick
Table Row (tr)
id
sig
Table Cell (td)
Span
style
float: left; margin-right: 5px;
void
Span
style
float: left; font-weight: bold;
id
iets
setMethodToCallOnRightClick
Span
style
float: left;
id
iets
(function, returnDataprovider)
Table Row (tr)
id
des
Table Cell (td)
Set method to call on right click. The callback will be called with the following arguments : returnDataprovider, tableName, mouseX, mouseY
Table Row (tr)
id
prs
Table Cell (td)
Parameters function returnDataprovider
Table Row (tr)
id
ret
Table Cell (td)
Returns void
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
//Set method to call on right click.
The callback will be called with the following arguments : returnDataprovider, tableName, mouseX, mouseY
binding.setMethodToCallOnRightClick(callbackFunction, 'returnDataprovider');
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
setNRelationDataprovider
class
node
Table Row (tr)
id
name
Table Cell (td)
setNRelationDataprovider
Table Row (tr)
id
sig
Table Cell (td)
Span
style
float: left; margin-right: 5px;
void
Span
style
float: left; font-weight: bold;
id
iets
setNRelationDataprovider
Span
style
float: left;
id
iets
(dataprovider)
Table Row (tr)
id
des
Table Cell (td)
Set n-relation dataprovider. Dataprovider returns the name of the n-relation
Table Row (tr)
id
prs
Table Cell (td)
Parameters dataprovider
Table Row (tr)
id
ret
Table Cell (td)
Returns void
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
binding.setNRelationDataprovider('dataprovider');
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
setNRelationInfos
class
node
Table Row (tr)
id
name
Table Cell (td)
setNRelationInfos
Table Row (tr)
id
sig
Table Cell (td)
Span
style
float: left; margin-right: 5px;
void
Span
style
float: left; font-weight: bold;
id
iets
setNRelationInfos
Span
style
float: left;
id
iets
()
Table Row (tr)
id
des
Table Cell (td)
Set n-relation infos (array of RelationInfo objects created using tree.createRelationInfo() for having multiple child relations for one node)
Table Row (tr)
id
ret
Table Cell (td)
Returns void
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
var company_relations = new Array();
company_relations[0] = tree.createRelationInfo();
company_relations[0].setLabel('Employees');
company_relations[0].setNRelationName('companies_to_employees');
company_relations[1] = tree.createRelationInfo();
company_relations[1].setLabel('Customers');
company_relations[1].setNRelationName('companies_to_customers');
binding.setNRelationInfos(company_relations);