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 ListI made listboxes in the search form but no result in search I made listboxes in the search form but no result in search
Previous
 
Next
New Post
5/7/2009 6:40 PM
 

Dear Stefan

Sorry it didn't work yet , i don't know what wrong i did what you told me but it shows no errors nor results the table is empty here is the code i used

Declaration of second search variable (search2)

 <xsl:param name="param_search2" />
  <xsl:param name="param_searchpostback2" />
  <xsl:param name="param_ispostback2" />
  <xsl:variable name="search2">
    <xsl:choose>
      <xsl:when test="$param_ispostback2">
        <xsl:value-of select="$param_searchpostback2" />
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$param_search2" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>

Using search2 in country listbox

Country:
<select name="{$prefix_param}_searchPostback2" value="{$search2}" >
       <xsl:for-each select="udt:Data[count(. | key('data-by-country', udt:Country)[1]) = 1]">
              <xsl:sort select="udt:Country" />
              <option>
                 <xsl:value-of select="udt:Country" /><br />
              </option>
       </xsl:for-each></select><br />

searching code

   <xsl:variable name="currentData" select="udt:Data[(udt:Country = $search2 and contains(*[name()=$searchColumns][1],$search)) or                             (udt:Country = $search2 and contains(*[name()=$searchColumns][2],$search)) or (udt:Country = $search2 and contains(*[name()=$searchColumns][3],$search)) or (udt:Country = $search2 and contains(*[name()=$searchColumns][4],$search)) or (udt:Country= $search2 and contains(*[name()=$searchColumns][5],$search))]" />

 

Very sorry Stefan for disturbing you but you are the only one i can ask.

 
New Post
5/8/2009 2:16 AM
Accepted Answer 

Which colums are you going to search? I bet thay have names :-)

Frst, replace *[name()=$searchColums][xx]  with the names of your columns.

 
New Post
5/8/2009 5:25 AM
 

I don't Know how to thank you Stefan but without your help i would lose this site , It works now finally .

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListI made listboxes in the search form but no result in search I made listboxes in the search form but no result in search


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