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  |  

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


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

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
Red-Gate Software
 


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
51 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
224 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
51 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
1489 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.

 


Module Development by Engage Software
Specializing in custom module development, training and skinning.
www.engagesoftware.com
BataviaSoft DotNetNuke Solutions
BataviaSoft offers custom DotNetNuke solutions especially for the European and the South East Asian market.
www.bataviasoft.com
Viva Portals, L.L.C.
Expert module development and graphic design.
www.continure.com

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