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  |  

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


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


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
46 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
207 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
46 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
1454 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).

Need to import external data to a UDT? Try http://www.codeplex.com/Csv2UDTImport

 
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.

 


Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com
PartnerPoint - Microsoft Technology Community
PartnerPoint is one of the largest online communities of Microsoft Partners Worldwide. With over 5,000 active members, it serves as a collaboration platform for other technology communties around the globe
www.partnerpoint.com

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