Skip to content

Instantly share code, notes, and snippets.

@vgrem

vgrem/CTXGeneration.xsl

Last active Dec 21, 2015
Embed
What would you like to do?
ContextInfo generation template
<!--
Partial implementation of CTXGeneration template
(The remaining code is omitted for clarity here)
-->
<xsl:template name="CTXGeneration" ddwrt:ghost="always">
<script type="text/javascript">
ctx = new ContextInfo();
<!--Save List Dialogs parameter in NavigateForFormsPages property of ContextInfo structure-->
ctx.NavigateForFormsPages = <xsl:choose>
<xsl:when test="$NavigateForFormsPages='1'">true</xsl:when>
<xsl:otherwise>false</xsl:otherwise>
</xsl:choose>;
ctx<xsl:value-of select="$ViewCounter"/> = ctx;
g_ctxDict['ctx<xsl:value-of select="$ViewCounter"/>'] = ctx;
</script>
</xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.