Table Head (thead) |
---|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add foundset to the list of foundsets used to create the tree's root nodes.\nNote: the bean will use a clone of the foundset, so any changes on the foundset parameter will be ignored in the tree. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Number - The number of added root nodes |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var addedRootNodes = elements.customer_id.addRoots(foundset); |
|
|
|
|
Table Body (tbody) |
---|
id | createBinding-StringArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createBinding |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create and add binding object for a database table used to set data bindings for nodes. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Binding - Binding object for a database table |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var companies_binding = elements.customer_id.createBinding('example_data', 'companies');
companies_binding.setTextDataprovider('company_name');
companies_binding.setNRelationName('companies_to_companies');
companies_binding.setImageURLDataprovider('type_icon');
companies_binding.setChildSortDataprovider('company_sort'); |
|
|
|
|
Table Body (tbody) |
---|
id | createColumn-String_String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createColumn |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(datasource, header, fieldname) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create and add new column to the tree table |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.createColumn('db:/serverName/tableName', 'header text', 'tablefieldname', 150); |
|
|
|
|
Table Body (tbody) |
---|
id | createColumn-String_String_String_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createColumn |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(datasource, header, fieldname, preferredWidth) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create and add new column to the tree table |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.createColumn('db:/serverName/tableName', 'header text', 'tablefieldname', 150); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createRelationInfo |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create relation info object used to set multiple child relations for a tree node |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var company_relations = new Array();
company_relations[0] = elements.customer_id.createRelationInfo();
company_relations[0].setLabel('Employees');
company_relations[0].setNRelationName('companies_to_employees');
company_relations[1] = elements.customer_id.createRelationInfo();
company_relations[1].setLabel('Customers');
company_relations[1].setNRelationName('companies_to_customers');
companies_binding.setNRelationInfos(company_relations); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the height of the tree. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.getHeight(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getLocationX |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Get the x coordinate of the location of the tree. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.getLocationX(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getLocationY |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Get the y coordinate of the location of the tree. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.getLocationY(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the name of the tree. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.getName(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the width of the tree. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.getWidth(); |
|
|
|
|
Table Body (tbody) |
---|
id | isNodeExpanded-ObjectArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
isNodeExpanded |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Check the path (array with pk records values (only single pk key supported)) expanded status |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Boolean - True if the node is expanded, False otherwise |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var pathArray = new Array(14,24,45,67);
elements.customer_id.isNodeExpanded(pathArray); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Refresh the tree display |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.refresh(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
removeAllColumns |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Remove all columns but the tree column from the tree table |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.removeAllColumns(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
removeAllRoots |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Remove all root foundsets |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.removeAllRoots(); |
|
|
|
|
Table Body (tbody) |
---|
id | setExpandNode-ObjectArray_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setExpandNode |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(nodePath, expand_collapse) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Expand/collapse the path, array with pk records values (only single pk key supported) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var pathArray = new Array(14,24,45,67);
elements.customer_id.setExpandNode(pathArray, true); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Sets the specified font as the font of the tree. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.setFont('Times New Roman, 1, 22'); |
|
|
|
|
Table Body (tbody) |
---|
id | setLocation-Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setLocation |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Sets the location of the tree. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.setLocation(120,80); |
|
|
|
|
Table Body (tbody) |
---|
id | setNodeLevelVisible-Number_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setNodeLevelVisible |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Set the level of visible nodes (expand or collapse to certain level) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.setNodeLevelVisible(scopes.globals.g_treeview_level, (scopes.globals.g_treeview_expand == 1 ? true : false)); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Set method to be called when a drag is started on the tree. For more details about the method arguments and return value check the same property of a form |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.setOnDrag(onDrag); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setOnDragEnd |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Set method to be called when a drag of on the tree is ended. For more details about the method arguments and return value check the same property of a form |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.setOnDragEnd(onDragEnd); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setOnDragOver |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Set method to be called during a drag over the tree. For more details about the method arguments and return value check the same property of a form |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.setOnDragOver(onDragOver); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Set method to be called on a drop on the tree. For more details about the method arguments and return value check the same property of a form |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.setOnDrop(onDrop); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setRowHeight |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.setRowHeight(40); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Sets the size of the tree. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.setSize(400,300); |
|
|
|
|
Table Body (tbody) |
---|
id | setTreeColumnHeader-String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setTreeColumnHeader |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Set the header text for the tree column |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.setTreeColumnHeader('Tree Column Header'); |
|
|
|
|
Table Body (tbody) |
---|
id | setTreeColumnPreferredWidth-Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setTreeColumnPreferredWidth |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| setTreeColumnPreferredWidth |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Set the preferred width in pixels for the tree column |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| elements.customer_id.setTreeColumnPreferredWidth(200); |
|
|
|
|
|