Class TabularDataControl

  • All Implemented Interfaces:
    Observer, VariableResolver, IControl, IDataBoundControl, IDataControl, IRenderer
    Direct Known Subclasses:
    AdvancedTabularDataControl, AnnouncementTabularDataControl, AssociationTabularDataControl, CommunityTabularDataControl, DetailsControl, HierarchicalTabularDataControl, LinkTabularDataControl, SelectItemTabularDataControl

    public class TabularDataControl
    extends DataBoundControl<TabularSource<?>>
    Used to render data from a tabular data source.

    Example use: <control:lum_tabularData sourceId="voteOption"/> xml data available for xsl rendering: <control id="8A488A0311570496011157BFD84114F0" sourceId="voteOption" type="lum_tabularData"> <strings> <string id="STR_ORDER_ASC">Sort ascending</string> <string id="STR_ORDER">Sort</string> <string id="STR_ORDER_DESC">Sort descending</string> </strings> <fields> <field dataType="string" display="false" id="optionId" includeAlways="true" isPrimaryKey="true" maxLength="32" name="ID" required="true" requiredWhenVisible="true"/> <field dataType="string" display="false" id="questionId" maxLength="32" name="STR_QUESTION_ID" required="true"/> <field dataType="string" id="optionTitle" isPrimaryName="true" maxLength="255" name="Option" required="true" requiredWhenVisible="true"/> <field dataType="integer" defaultValue="0" display="true" id="numberOfVotes" name="Votes" required="true"/> <field dataType="string" display="true" externalData="true" id="votePercentValue" name="Percent"/> <field dataType="double" display="true" externalData="true" id="votePercentDisplay" name="Percent" pattern="0.0"/> <field dataType="integer" id="position" isRowNumber="true" name="STR_POSITION" required="true"/> <field columnName="questionId" dataType="string" display="true" doLookup="true" id="totalVotes" lookupFieldId="numberOfVotes" lookupRelationId="voteQuestion" name="Total" readOnly="true"/> </fields> <data> <formName>Form_8A488A0311570496011157AECA8D10BA</formName> <row primaryKey="8A488A0311570496011157BFAC23148F"> <optionId>8A488A0311570496011157BFAC23148F</optionId> <questionId>8A488A0311570496011157BFA672148A</questionId> <optionTitle>Option 1</optionTitle> <numberOfVotes>1</numberOfVotes> <votePercentValue>100.0</votePercentValue> <votePercentDisplay>100.0</votePercentDisplay> <position>1</position> <totalVotes>1</totalVotes> </row> <row primaryKey="8A488A0311570496011157BFAC611490"> <optionId>8A488A0311570496011157BFAC611490</optionId> <questionId>8A488A0311570496011157BFA672148A</questionId> <optionTitle>Option 2</optionTitle> <numberOfVotes>0</numberOfVotes> <votePercentValue>0.0</votePercentValue> <votePercentDisplay>0.0</votePercentDisplay> <position>2</position> <totalVotes>1</totalVotes> </row> <rowActions> <rowAction> <name>Edit</name> <controlId>lum_402809813A929400013A937DA69510D0.editButton</controlId> </rowAction> <rowAction> <name>Delete</name> <controlId>lum_402809813A929400013A937DA69510D0.deleteButton</controlId> </rowAction> <rowAction> <name>(Un)Lock</name> <controlId>lum_402809813A929400013A937DA69510D0.lockButton</controlId> </rowAction> <rowAction> <name>Versions</name> <controlId>versionsButton</controlId> </rowAction> <rowAction> <name>Preview</name> <controlId>previewButton</controlId> </rowAction> </rowActions> </data> </control>
    Since:
    4.0.6
    Version:
    $Revision: 20825 $ $Date: 2017-12-11 14:43:21 -0200 (Mon, 11 Dec 2017) $