Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 03, 2013 @ 15:19
    Fuji Kusaka
    0

    Get Record Id on submission

    Anyone can point out what am i doing wrong here cos i can get the current Record Id on submission in a xslt transformed email to the admin.

    The Record Id of the form is not displayind here.

      <xsl:stylesheet
      version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:msxml="urn:schemas-microsoft-com:xslt"
      xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:umbraco.contour="urn:umbraco.contour" xmlns:ucomponents.dates="urn:ucomponents.dates" xmlns:ucomponents.media="urn:ucomponents.media" xmlns:ucomponents.nodes="urn:ucomponents.nodes"
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets umbraco.contour ucomponents.dates ucomponents.media ucomponents.nodes ">
        <xsl:output method="xml" omit-xml-declaration="yes"/><xsl:param name="records"/>
        <xsl:template match="/">
            <xsl:variable name="id" select="umbraco.library:RequestQueryString('recordid')" />
            <xsl:if test="$id != ''">
                <xsl:variable name="record" select="umbraco.contour:GetRecord($id)" />
            </xsl:if>
    </xsl:template>

    All other records fields are displaying though

      <xsl:for-each select="$records//fields/child::* [caption = 'Race / Course']//value">
                    Race / Course :  <span style="color:#8EA73D;">
                        <strong>
                            <xsl:value-of select="."/>
                        </strong>
                    </span><br/>                
                </xsl:for-each>
  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 03, 2013 @ 19:09
    Fuji Kusaka
    0

    Any suggestion on this ??

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 04, 2013 @ 07:15
    Fuji Kusaka
    0

    Even when i hardcode the Id i still dont get anything.

     <xsl:param name="records"/>
        <xsl:template match="/">
     
            Nom / Last Name :  <span style="color:#8EA73D;">
                <strong>
                    <xsl:value-of select="$records//fields/child::* [caption = 'Nom / Last Name']//value"/>
                </strong>
            </span><br/>
            <xsl:for-each select="$records">
                Posted by :  <xsl:value-of select="umbraco.library:FormatDateTime(./created, 'dddd, MMMM dd, yyy hh:mm tt')" disable-output-escaping="yes"/>
                <xsl:value-of select="umbraco.contour:GetRecord('dffc7f1a-5480-4339-92e4-03cd8128195e')"/>
            </xsl:for-each>

            

        </xsl:template>
  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 04, 2013 @ 08:41
    Fuji Kusaka
    101

    Got it working, just for the record am using contour 3.0.12 here.

      <xsl:value-of select="$records/id"/>
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies