M
Martyn Lawson
Hi,
I have a repeating table that is bound to a secondary datasource (SharePoint
Form Library). One of the columns is a Date field, however, I do not appear
to be able to format the field as the option is not available.
Is there a way to format this field by modifying a file? I have tried to
change the .xsl file to:
<span class="xdTextBox xdBehavior_Formatting" hideFocus="1" title=""
tabIndex="-1" xd:CtrlId="CTRL5" xd:xctname="PlainText"
xd:disableEditing="yes" xd:binding="@Quote_Date" xd:boundProp="xd:num"
xd:datafmt=""datetime","dateFormat:dd MMMM yyyy;timeFormat:none;""
style="FONT-SIZE: xx-small; WIDTH: 100%; WHITE-SPACE: nowrap;
BACKGROUND-COLOR: #eeeeee; WORD-WRAP: normal">
<xsl:attribute name="xd:num">
<xsl:value-of select="@Quote_Date"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="function-available('xdFormatting:formatString')">
<xsl:value-of
select="xdFormatting:formatString(@Quote_Date,"datetime","dateFormat:dd MMMM
yyyy;timeFormat:none;")"/>
</xsl:when>
<xsltherwise>
<xsl:value-of select="@Quote_Date"/>
</xsltherwise>
</xsl:choose>
</span>
but it didn't work.
Any ideas?
Cheers,
Martyn...
I have a repeating table that is bound to a secondary datasource (SharePoint
Form Library). One of the columns is a Date field, however, I do not appear
to be able to format the field as the option is not available.
Is there a way to format this field by modifying a file? I have tried to
change the .xsl file to:
<span class="xdTextBox xdBehavior_Formatting" hideFocus="1" title=""
tabIndex="-1" xd:CtrlId="CTRL5" xd:xctname="PlainText"
xd:disableEditing="yes" xd:binding="@Quote_Date" xd:boundProp="xd:num"
xd:datafmt=""datetime","dateFormat:dd MMMM yyyy;timeFormat:none;""
style="FONT-SIZE: xx-small; WIDTH: 100%; WHITE-SPACE: nowrap;
BACKGROUND-COLOR: #eeeeee; WORD-WRAP: normal">
<xsl:attribute name="xd:num">
<xsl:value-of select="@Quote_Date"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="function-available('xdFormatting:formatString')">
<xsl:value-of
select="xdFormatting:formatString(@Quote_Date,"datetime","dateFormat:dd MMMM
yyyy;timeFormat:none;")"/>
</xsl:when>
<xsltherwise>
<xsl:value-of select="@Quote_Date"/>
</xsltherwise>
</xsl:choose>
</span>
but it didn't work.
Any ideas?
Cheers,
Martyn...