Format Date in Secondary Datasource

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>
<xsl:eek:therwise>
<xsl:value-of select="@Quote_Date"/>
</xsl:eek:therwise>
</xsl:choose>
</span>

but it didn't work.

Any ideas?

Cheers,
Martyn...
 
F

Franck Dauché

Hi Martyn,

Can you post the xsl before the modification?

Regards,

Franck Dauché
 
M

Martyn Lawson

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top