viernes, 3 de febrero de 2012

XLST Algunos tips


Select the lookup column item and in the document map bar in the bottom, choose the context menu for “xsl:value-of”, and select ”Edit Tag…”

You will see the “Edit Tag” window

La siguiente línea borra todos lo que está antes de > y después de <

<xsl:value-of select=”substring-before(substring-after($thisNode/@*[name()=current()/@Name],’&gt;’), ‘&lt;’)” disable-output-escaping=”yes”>


* Current date = 22/07/2011

As it can be noticed in the above picture that the condition is false for 29/07/2011 but true for 05/08/2011. If I go to advance view the condition it generates behind the scenes is the one below

I forced the Due Date to the correct format in this condition I used “ddwrt:FormatDate” function

string($thisNode/@DueDate), 2057, 1))) <

In the above line, 2057 is the LCID for British English, and “1″ is a simple date format.

And it worked for me


No hay comentarios:

Publicar un comentario