Represents a datatable that can be accessed from other elements while in scope, then formatted and rendered when going out of scope.
Syntax
Smartsite SXML | Copy Code |
---|---|
<se:placeholder /> |
Parameters
Name | Data Type | Properties | Description |
---|---|---|---|
DependsOn | Collection | - | Sets the Id's of the placeholders this placeholder depends on. |
FieldNames | Collection | - |
Sets the field names for the underlying datatable. When specifying field names, you can use this.field(name) to retrieve column values in the rowformat parameter. Otherwise, you'll have to field values by index. Also, field names must be specified to be able to use theSortColumnparameter. |
Format | String |
RawData
|
Sets the formatting Xml. |
FormatSourceId | String | - | Sets the source id of the macro to use the formatting from. |
IgnoreDuplicates | Boolean | - | Sets a value indicating whether to ignore duplicate entries |
InputData | DataTable | - | Passes a Datatable directly to the module as input. |
MaxRows | Integer | - | Sets a limit for the number of rows that the output may contain. |
Render | Boolean | - |
Gets or sets a value indicating whether this PlaceHolder should render in place. |
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. |
SortColumn | String | - | Sets the sortcolumn used when formatting the result. |
Shared Parameters
Local Viper Methods
Viper | Extension | Description |
---|---|---|
This.Add | ✓ | Adds a row with the specified column values to the placeholder. |
This.AddLine | ✓ | Adds the specified data and a new line character to the placeholder. |
This.Append | ✓ | Appends data from the given datatables to this placeholder. |
This.ChildLevelResult | Gets the result of the child levels. | |
This.Clear | ✓ | Clears the data in the placeholder. |
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.Data | ✓ | Gets the underlying datatable used to hold the placeholder data. |
This.Delete | ✓ | Deletes the specified rows. |
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.FindExact | ✓ | Finds a row using the specified column values. |
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.Length | ✓ | Returns the number of rows added to the placeholder. |
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.Render | ✓ | Renders the placeholder. |
This.Rendered | ✓ | Gets a value indicating whether the placeholder is rendered. |
This.RenderTime | ✓ | Returns the render time of the macro in milliseconds. |
This.Result |
Returns the result of the macro. Typically used in the ResultFormat property, to format, convert or encode the result. |
|
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.Search | ✓ | Searches for rows matching the given criteria. |
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. |