|
|
Displays a hierarchy based on a data table.
Syntax
| Smartsite SXML |
|
|---|---|
<se:viewhierarchy>
<se:parameters>
<se:parameter name="keyfield">
</se:parameter>
<se:parameter name="parentfield">
</se:parameter>
<se:parameter name="inputdata">
</se:parameter>
</se:parameters>
</se:viewhierarchy>
|
|
Parameters
| Name | Data Type | Properties | Description |
|---|---|---|---|
| ChildOrderField | String | - | Sets or returns the name of the field that determines the sort order of a node's children. |
| Format | String |
RawData
|
Sets the formatting Xml. |
| IncludeRoot | Boolean | - | Determines if the StartItem will be included in the output. Does not influence level. |
| InputData | DataTable |
IsRequired
|
DataTable containing the hierarchically ordered data. |
| KeyField | String |
IsRequired
|
Sets or returns the name of the key field. |
| LevelField | String | - | Sets or returns the name of the level field. |
| MaxLevels | Integer | - | Maximum number of levels that will be determined. Initialized at 2. 0 means no maximum, returning all items below the StartItem. |
| MaxRows | Integer | - | Sets a limit for the number of rows that the output may contain. |
| ParentField | String |
IsRequired
|
Sets or returns the name of the parent field. |
| RecurseOnField | String | - | Sets or returns the name of the field that determines if a node can have children. |
| RecurseOnValue | Any | - | Sets or returns the value for the RecurseOnField for which children will be added. |
| RootNode | Any | - | Dete |
| RowDelimiter | String | - | Specifies the delimiter string that separates individual records. |
| RowFormat | String |
RawData
|
Sets the formatting string. |
| SkipRows | Integer | - | Specifies which row will be the first row in the output. |
Shared Parameters
Local Viper Methods
| Viper | Extension | Description |
|---|---|---|
| This.ChildLevelResult | Gets the result of the child levels. | |
| This.ClearForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |
|
| This.ColCount | Gets the number of columns in the datatable. | |
| This.ColName | Gets the name of the current column. | |
| This.ColNumber | Gets the number of the current column. | |
| This.Field | Gets the field value of the current column in the current row, when using colformat. | |
| This.Field.Exists | Checks whether the given field exists. | |
| This.GetForcedResult | Gets the forced result of the macro, set by overriding the normal rendering using SetForcedResult(). | |
| This.Group | Gets the name of the current group. | |
| This.GroupCount | Gets the total number of groups displayed. | |
| This.GroupNumber | Gets the number of the current group. | |
| This.GroupResult | Gets the result of the current group. | |
| This.GroupRowNumber | Gets the number of the current row in the current group. | |
| This.Level | Gets the current formatting level. | |
| This.LevelResult | Gets the result of the current level. | |
| This.LevelRowNumber | Gets the current row of the current level. | |
| This.Location | Gets the location the current row points to, in a macro that can build URLs. | |
| This.MaxRows | Gets a limit for the number of rows that the output may contain. | |
| This.Name | Gets the title or name represented by the current row. | |
| This.param | Gets the value of a parameter with the given index. Useful when using the viper:exec inside xslt formatting. | |
| This.RawField | Gets the raw field value of the current column in the current row, when using colformat. | |
| This.RenderTime | ✓ | Returns the render time of the macro in milliseconds. |
| This.RowCount | Gets the total number of rows in the datatable. | |
| This.RowNumber | Gets the current row number. | |
| This.RowResult | Gets the result of the current row. | |
| This.SetForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |
|
| This.SkipRows | Specifies which row will be the first row in the output. | |
| This.Title | Gets the title represented by the current row. | |
| This.VisibleRowCount | Gets the total number of rows displayed. | |
| This.VisibleRowNumber | Gets the current visible row number. |