New answers tagged

0

Calculated Column (SP2010 / 2013 / Online) You can get the same effect without any complex XSLT by creating a Calculated Column and setting the output type to Date (or anything but Single Line Text) which will execute the HTML, but only in a View, this does NOT work on Forms ="<DIV style='background:" &IF([Days On Hand]<15,"lightcoral",IF([Days ...


0

Or use template rules: <xsl:attribute name="style"> <xsl:apply-templates select="@Days" mode="style"/> </xsl:attribute> <xsl:template match="@Days[. &lt; 30]" priority="3">color: red;</xsl:template> <xsl:template match="@Days[. &lt; 15]" priority="2">color: yellow;</xsl:template> <xsl:template ...


0

You want <xsl:choose>: <xsl:attribute name="style"> <xsl:choose> <xsl:when test="number($thisNode/@Days_x0020_On_x0020_Hand) &lt; 15"> color: yellow; </xsl:when> <xsl:when test="number($thisNode/@Days_x0020_On_x0020_Hand) &lt; 30"> color: red; ...


3

I resolved this issue by making changes in date format as below <xsl:value-of select="ddwrt:FormatDateTime(string(@EventDate),3081,'dddd,d MMMM,yyyy')"/>


1

You can use below mentioned line to get your desired output. <xsl:value-of select="ddwrt:FormatDateTime(string(@EventDate), 1033, 'dddd, mmmm d, yyyy')" />


0

For parts 1 and 2 of your question: Not sure if this helps (I'm on SharePoint Online [2013]), but try using the SharePoint:CreatedModifiedInfo tag as suggested here to show properly hyperlinked version rather than all of the HTML tags. It worked for a custom field I did, though I had to remove an extra line of code from the original answer to avoid a ...


0

I found an article about paging problems in the dataview webpart where the solution was creating a new variable called dvt_PrevPageData <xsl:variable name="dvt_PrevPageData"> <xsl:choose> <xsl:when test="($FirstRow - $RowLimit - 1) &gt; -1"> <xsl:value-of select="$FirstRow - $RowLimit - 1" /> ...



Top 50 recent answers are included