Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: ExtensionData at Entity Level

  1. #1
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Exclamation ExtensionData at Entity Level

    Hi How can I display Product ExtensionData at Entity Level

    i tried this
    HTML Code:
    <xsl:value-of select="ExtensionData" disable-output-escaping="yes"/>
    which works fine for product level.

    but doesn't works for Entity Level.

    Can anyone help me with this.

    thanks
    rbgx
    AspDotNetStorefront ML
    v8.0.1.4

  2. #2
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    You can add another query to your category xmlpackage like this :-

    C#/VB.NET Code:
    <query name="AdditionalP" rowElementName="Product" retType="xml">
        <
    sql>
          <![
    CDATA[
                    
    SELECT ProductIDCONVERT(xmlExtensionData) as ExtensionData FROM Product WHERE ProductID in(SELECT ProductID from ProductCategory where CategoryID = @CategoryID) FOR XML AUTO ;
                ]]>
        </
    sql>
            <
    queryparam paramname="@CategoryID" paramtype="request" requestparamname="CategoryID" sqlDataType="int" defvalue="0" validationpattern="^\d{1,10}$" />
      </
    query

  3. #3
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Exclamation no use

    I added this right above the <PackageTransform>

    HTML Code:
    <query name="AdditionalP" rowElementName="Product" retType="xml"> 
        <sql> 
          <![CDATA[ 
                    SELECT ProductID, CONVERT(xml, ExtensionData) as ExtensionData FROM Product WHERE ProductID in(SELECT ProductID from ProductCategory where CategoryID = @CategoryID) FOR XML AUTO ; 
                ]]> 
        </sql> 
            <queryparam paramname="@CategoryID" paramtype="request" requestparamname="CategoryID" sqlDataType="int" defvalue="0" validationpattern="^\d{1,10}$" /> 
      </query>
    and
    placed this
    HTML Code:
    <xsl:value-of select="ExtensionData" disable-output-escaping="yes"/>
    at required position.

    But it is not showing the extension data

    can you please confirm if am missing anything.

    thanks
    rbgx
    AspDotNetStorefront ML
    v8.0.1.4