Tree: Conversion from ASPX to HTML and TypeScript
The following tables will help you to convert the ASPX elements that are related to trees to HTML or TypeScript elements.
Behavior
The following table shows the correspondence between the Behavior element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
Behavior
|
Use the autoRepaint property of the treeConfig decorator. |
ExtraColumns
The following table shows the correspondence between the ExtraColumns element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
ExtraColumns
|
Use the extraColumns property of the treeConfig decorator. |
Images
The following table shows the correspondence between the Images element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
Images
|
Use the images property of the treeConfig decorator. |
PXTree
The following table shows the correspondence between the PXTree element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
PXTree
|
Use the qp-tree tag in HTML and the treeConfig decorator for a view class in TypeScript. The following example shows a declaration of a view class for a tree in TypeScript.
The following HTML code includes the tree in the layout of an MYOB Acumatica form.
|
ActionField
|
Use the actionField property of the treeConfig decorator. |
AddChildNode
|
Use the addChildNode property of the treeConfig decorator. |
AddSiblingNode
|
Use the addSiblingNode property of the treeConfig decorator. |
CheckDropCommand
|
Use the checkDropCommand property of the treeConfig decorator. |
DataMember
|
Use the view attribute of the qp-tree
control, as the following code shows.
|
DefaultDrag
|
Use the defaultDrag property of the treeConfig decorator. |
Description
|
Use the textField property of the treeConfig decorator. |
ExtraColumnField
|
Use the extraColumnField property of the treeConfig decorator. |
Height
|
Do not specify the height of a tree control because it is automatically adjusted for various screen sizes. However, if you need to specify the height for some reason, you can use the height property in the treeConfig decorator. |
IconColorField
|
Use the iconColorField property of the treeConfig decorator. |
IconField
|
Use the iconField property of the treeConfig decorator. |
IconSize
|
Use the iconSize property of the treeConfig decorator. |
ID
|
Use the id attribute of the qp-tree
control, as the following code shows.
|
IDName
|
Use the idField property of the treeConfig decorator. |
Mode
|
Use the mode property of the treeConfig decorator. |
Modifiable
|
Use the modifiable property of the treeConfig decorator. |
OnAdd
|
Use the onAdd property of the treeConfig decorator. |
OnChange
|
Use the onChange property of the treeConfig decorator. |
OnDelete
|
Use the onDelete property of the treeConfig decorator. |
OnSelect
|
Use the onSelect property of the treeConfig decorator. |
ParentIDName
|
Use the parentIdField property of the treeConfig decorator. |
SingleClickSelect
|
Use the singleClickSelect property of the treeConfig decorator. |
Width
|
Do not specify the width of a tree control because it is automatically adjusted for various screen sizes. However, if you need to specify the width for some reason, you can use the width property in the treeConfig decorator. |
PXTreeItemBinding
The following table shows the correspondence between the PXTreeItemBinding element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
PXTreeItemBinding
|
Use the properties of the treeConfig decorator, as shown in the following example.
Note:
The DescriptionField property from ASPX is not supported in
the Modern UI. |
DataMember
|
Use the view attribute of the qp-tree
control, as the following code shows.
|
DescriptionField
|
The DescriptionField property from ASPX is not supported in the Modern UI. |
ImageUrlField
|
Use the iconField property of the treeConfig decorator. |
TextField
|
Use the textField property of the treeConfig decorator. |
ToolTipField
|
Use the toolTipField property of the treeConfig decorator. |
ValueField
|
Use the valueField property of the treeConfig decorator. |
PXTreeView
The following table shows the correspondence between the PXTreeView element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
PXTreeView
|
Use the qp-tree tag in HTML and the treeConfig decorator for a view class in TypeScript. The following example shows a declaration of a view class for a tree in TypeScript.
Note:
The DescriptionField property from ASPX is not supported in
the Modern UI. The following HTML code includes the tree in the layout of an MYOB Acumatica form.
|
AllowCollapse
|
Use the qp-collapsible attribute as described in Collapsible Area: Configuration. |
AutoRepaint
|
Use the autoRepaint property of the treeConfig decorator. |
Caption
|
Use the caption attribute of the qp-tree
control, as the following code shows.
|
DataMember
|
Use the view attribute of the qp-tree
control, as the following code shows.
|
ExpandDepth
|
Use the openedLayers property of the treeConfig decorator. |
Height
|
Do not specify the height of a tree control because it is automatically adjusted for various screen sizes. However, if you need to specify the height for some reason, you can use the height property in the treeConfig decorator. |
ID
|
Use the id attribute of the qp-tree
control, as the following code shows.
|
KeepPosition
|
Use the keepPosition property of the treeConfig decorator. |
PopulateOnDemand
|
Use the dynamic property of the treeConfig decorator. |
SelectFirstNode
|
Use the selectFirstNode property of the treeConfig decorator. |
ShowRootNode
|
Use the hideRootNode property of the treeConfig decorator. |
SyncPosition
|
Use the syncPosition property of the treeConfig decorator. |
Width
|
Do not specify the width of a tree control because it is automatically adjusted for various screen sizes. However, if you need to specify the width for some reason, you can use the width property in the treeConfig decorator. |
PXDataSource
The following table shows the correspondence between the PXDataSource element, which is used as a container for the DataTrees and PXTreeDataMember elements, and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
PXDataSource >
KeySeparatorChar
|
Use the keySeparatorChar property in the treeConfig property of the controlConfig or fieldConfig decorator.
|
Obsolete ASPX Controls and Properties
The following table lists the obsolete ASPX elements that are related to the tree control. You do not need to replace these ASPX elements with any HTML or TypeScript elements.
ASPX Control | Properties |
---|---|
PXTree
|
|
PXTreeView
|
|
AutoCallBack
|
All properties |
AutoSize
|
All properties |
CaptionStyle
|
All properties |
PXTreeDataMember
|
All properties |