Table Content

Table content control allows listing multiple records. In contrast to the Row Content, Table Content has its own columns and column labels, so there is no need to add extra Row Contents for the purpose of displaying labels. 

This content control also allows importing data from an excel file and exporting it's content as an excel file.


Design 

Add New Label
Specifies a name for the Add New button. This button adds a new row to the table content.

Show Blank Slate

Specify whether or not to show a message indicating the control is empty when there is no record in it. The message says, "No item found on this list.".


Rules

Required for Group

Enter any name into this area to specify a validation group for the related control. After that, when you enter this same validation group name into a Validation Group area on any action button of any task, it will be checked for validation whenever the action is selected on the form.


Section Name

Unable to render {include} The included page could not be found.

Dynamic Rules

The dynamic rules section allows specifying format and warning messages of any element and section. It consists of two parts, one of them is for formatting rules, and the other one is for validation rules.

  • Formatting rules allow you to change the formats (text colour, background colour, style) and visibility of control depending on a condition. 
    Further information can be found here.

  • Validation rules allow you to validate the data that the end user enters. 
    Further information can be found here.

Row Rules
The same rules as the dynamic rules are available, but they only apply to the rows that satisfy the condition.

Data

Bound XPath

XPath of the element. If set to empty, it uses the parent XPath.

Row Id XPath
Give a specific Id for each row by filling this box with an XPath.   

Item XPath
Items of a table content change depending on this setting. Default is " * " which sets it to regard all items as in the same structure. If you want to use different contents for different items, you should dictate it by specifying an XPath. 

Hierarchy XPath

In a nested XML node structure, for example, if your XML looks like the excerpt below, you may specify the starting node of the recurrence. In this example, Hierarchy XPath is "Folders".

<Folders>
    <Folder>
        <Name>text1</Name>
    </Folder>
    <Folder>
        <Name>text2</Name>
        <Folders>
            <Folder>
                <Name>text2a</Name>
            </Folder>
            <Folder>
                <Name>text2b</Name>
            </Folder>
        </Folders>
    </Folder>
</Folders>

<Folders>
    <Folder>
		<Name>folder1</Name>
	</Folder>
    <Folder>
		<Name>folder2</Name>
		<Folders>
        	<Folder>
				<Name>folder2a</Name>
			</Folder>
        	<Folder>
				<Name>folder2b</Name>
			</Folder>
    	</Folders>
	</Folder>
</Folders>


Filter XPath
By using Filter Xpath, it is possible to refine the content of the table. For this example, only the rows where IsCustomer node is set to true, will be displayed.

 

Import from Excel 

This control allows you to import data from an excel file into itself. In order to accomplish this, all you have to do is, enable AllowImport in DataExchange and define the columns in this property.

Example: Import from Excel
<DataExchange AllowImport="True" AllowExport="False">
        <Columns>
            <Column Caption="Form No" Type="Number">
                <XPath><![CDATA[FormNo]]></XPath>
            </Column>
            <Column Caption="Owner" Type="Text">
                <XPath><![CDATA[Owner]]></XPath>
            </Column>
            <Column Caption="Date" Type="DateTime">
                <XPath><![CDATA[FormDate]]></XPath>
            </Column>
        </Columns>
    </DataExchange>


Export to Excel

This control allows you to export your records to excel. In order to accomplish this, all you have to do is, enable AllowExport in DataExchange and define the columns in this property.

Example: Export to Excel
<DataExchange AllowImport="False" AllowExport="True">
        <Columns>
            <Column Caption="Form No" Type="Number">
                <XPath><![CDATA[FormNo]]></XPath>
            </Column>
            <Column Caption="Owner" Type="Text">
                <XPath><![CDATA[Owner]]></XPath>
            </Column>
            <Column Caption="Date" Type="DateTime">
                <XPath><![CDATA[FormDate]]></XPath>
            </Column>
        </Columns>
    </DataExchange>


Sort XPath
Sorts rows with respect to given XPath.

Assume you have a node named Number above each item of table content. Entering "Number" into Sort XPath would sort the items according to the text value of the Number node. If you want to sort items according to the numeric value of the Number node, use the number function as "number(Number)".

Other

Allow Moving XPath
Xpath to control item movement in the list. Please use "0" to disable for always.

Allow Move Up/Down XPath
Xpath to control vertical item movement in the list. Please use "0" to disable for always. 

Allow New XPath
Xpath to control whether adding new items is available to the list. Please use "0" to disable for always. 

Allow Delete XPath
Xpath to control whether the delete button is available for each item. Please use "0" to disable for always.  

Allow Delete All XPath
Xpath to control whether the delete all button is available to clear the list or not. Please use "0" to disable for always. 
  

Monitored XPaths
Normally repeating content refreshes itself if specified XPath for filtering, ordering etc. changes. In cases you want to adjust repeating content to watch XPath(s) other than the ones in it, you may specify them in this section.

Other properties

Clicking on a control pops up a design actions menu with the following options:

  • Cut action cuts the control. Use the paste action to move the control to another location after cutting.
  • Copy action copies the control. Use the paste action to add the control to another location after copying.
  • Delete action deletes the control.
  • XML is used to view and edit the XML of the control.
  • Convert is used to change the content control into other control types.

  • Add new is used to add the new columns to the table.


Copyright © 2010 - 2023 Emakin. All rights reserved.