Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListXLS Search Query ProblemXLS Search Query Problem
Previous
 
Next
New Post
9/16/2008 11:26 PM
 

Ok,  here's my search query

<xsl:variable name="currentData" select="udt:Data[contains(*[name()=$searchColumns][1],$search)]" />

The field being searched is a text field but it contains numbers.  Examples of the data are 275,250,225,200,25,9.9,5,4,3.5

When I search, I was an exact match.  If I enter 25 I get 250,225 and 25.  I want to get only 25 back.  It seems to me that the word "contains" would indicate that the search places wild cards before and after.  Can anyone tell me how to get only exact matches?

Thank you.

Tom

 
New Post
9/17/2008 5:11 AM
Accepted Answer 

<xsl:variable name="currentData" select="udt:Data[*[name()=$searchColumns][1]=$search]" />

or, even simpler

<xsl:variable name="currentData" select="udt:Data[NameOfYourColumn=$search]" />

 

 
New Post
9/17/2008 12:52 PM
 

Once again, outstanding help.  You guys are on the ball.

I had no problem getting the first version to work.  I was having some sort of syntax issue with your second idea.  I tried:

<xsl:variable name="currentData" select="udt:Data[HP=$search]" />

with HP being the name of my column.  I got an error on that line.  What might be wrong with that syntax?

 
New Post
9/17/2008 4:21 PM
 

My fault, try <xsl:variable name="currentData" select="udt:Data[udt:HP=$search]" />

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListXLS Search Query ProblemXLS Search Query Problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out