Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  User Defined Ta...  Can another select be added?
Previous Previous
 
Next Next
New Post 5/13/2008 7:49 AM
User is offline Michelle Tarby
28 posts
10th Ranked


Can another select be added? 

I'm not sure if this is possible or I'm using the wrong syntax, but I'd like to add a second condition to the udt:Data[contains  is possible.

Something along the lines of <xsl:variable name="currentData" select="udt:Data[contains(udt:Lists,'P')]" /> and <xsl:variable name="currentData" select="udt:Data[contains(udt:Display,'true')]" />

Thanks in advance!

 
New Post 5/13/2008 8:51 AM
User is offline Mike Riley
185 posts
9th Ranked


Re: Can another select be added? 

Why not use <xsl:if test="field=value">?

The XSL will have to look at all of the underlying XML data anyway, so the speed/performance should be the same.

 
New Post 5/13/2008 9:17 AM
User is offline Michelle Tarby
28 posts
10th Ranked


Re: Can another select be added? 

I took a crack at that, but my syntax isn't correct, as I get an error:   Error Description:XSLT compile error

 

<xsl:template match="/udt:UserDefinedTable">
    <xsl:if test="Display=true">
    <xsl:variable name="currentData" select="udt:Data[contains(udt:Category,'administrator')]" />
    <xsl:apply-templates select="$currentData" mode="list">
    </xsl:apply-templates>
    </xsl:if>
</xsl:template>

 
New Post 5/23/2008 2:07 PM
User is offline Stefan Cullmann
1381 posts
6th Ranked








Re: Can another select be added? 

Did you try 
<xsl:variable name="currentData" select="udt:Data[contains(udt:Lists,'P') and
contains(udt:Display,'true')]" />

If the column Display is of type boolean, the correct statement is

<xsl:variable name="currentData" select="udt:Data[contains(udt:Lists,'P') and  udt:Display_UDT_Original='true'  ]" /> 


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com

forms & Lists (UDT5.0) will be the next major release of the User Defined Table project.
A first Preview is available, though it requires DotnetNuke 5 (Beta 5).

 
New Post 6/2/2008 11:46 PM
User is offline msmith_lv
38 posts
10th Ranked


Re: Can another select be added? 

I had the same question, and the first syntax worked for me where both were text fields.

Thanks again to all you geniuses for your help on these boards!!

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  User Defined Ta...  Can another select be added?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com
T-WORX, INC.
Professional DotNetNuke Solutions
www.t-worx.com
AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP