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>
<xsl:otherwise>
<xsl:value-of select="@Quote_Date"/>
</xsl:otherwise>
</xsl:choose>
</span>
but it didn't work.
Any ideas?
Cheers,
Martyn...
Franck Dauché - 24 Oct 2005 23:36 GMT
Hi Martyn,
Can you post the xsl before the modification?
Regards,
Franck Dauché
> Hi,
>
[quoted text clipped - 33 lines]
> Cheers,
> Martyn...
Martyn Lawson - 31 Oct 2005 13:04 GMT
Hi Franck,
Thanks for responding. The .xsl before the modification looked like:
<span class="xdTextBox" hideFocus="1" title="" tabIndex="-1"
xd:xctname="PlainText" xd:CtrlId="CTRL60" xd:binding="@Date_Licenced"
xd:disableEditing="yes" style="FONT-SIZE: xx-small; WIDTH: 100%; WHITE-SPACE:
nowrap; BACKGROUND-COLOR: #eeeeee; WORD-WRAP: normal">
<xsl:value-of select="@Date_Licenced"/>
</span>
Can you suggest a way of formatting the date?
Cheers,
Martyn...
> Hi Martyn,
>
[quoted text clipped - 41 lines]
> > Cheers,
> > Martyn...