Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2005

Tip: Looking for answers? Try searching our database.

Format Date in Secondary Datasource

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martyn Lawson - 24 Oct 2005 16:03 GMT
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...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.