Re: Nested search index

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 26013
interpreted = N
texte = >I believe this was discussed here some time ago, but I can't find a >mail about [index] in nested searches: > > [search 1...] > [founditems] > [search 2...] > [founditems] > [index] > [/founditems] > [/search] > [/founditems] > [/search] > >I need the [index] values of the inner search context. [search 2...] >returns the correct records and fields, but displays the [index] of >the outer search.That's bizarre. Webcatalog is supposed to use the inner index values when inside the inner founditems context. Nevertheless, I think you can get around the problem like this:[math]count=0[/math][search 1 ...] [founditems] [text]searchString[index]=searchStringForSearch2[/text] [math]count=count+1[/math] [/founditems] [/search][loop start=1&end=[count]] [search 2 ... &searchString=[interpret][searchString[index]][/interpret]] [founditems] [index] [/founditems] [/search] [/loop]Of course, this assumes that in the looped searches, the [index] tag appearing inside the founditems context is interpreted as the founditems index and not the loop index. But based on the results of your earlier experience, I wouldn't bet on it, so please let us know what your results are if you test this example ...================================ Kenneth Grome, WebDNA Consultant 808-737-6499, http://webdna.net ================================------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: Nested search index (Will Starck 2000)
  2. Re: Nested search index (Peter Ostry 2000)
  3. Re: Nested search index (Kenneth Grome 2000)
  4. Nested search index (Peter Ostry 2000)
>I believe this was discussed here some time ago, but I can't find a >mail about [index] in nested searches: > > [search 1...] > [founditems] > [search 2...] > [founditems] > [index] > [/founditems] > [/search] > [/founditems] > [/search] > >I need the [index] values of the inner search context. [search 2...] >returns the correct records and fields, but displays the [index] of >the outer search.That's bizarre. Webcatalog is supposed to use the inner index values when inside the inner founditems context. Nevertheless, I think you can get around the problem like this:[math]count=0[/math][search 1 ...] [founditems] [text]searchString[index]=searchStringForSearch2[/text] [math]count=count+1[/math] [/founditems] [/search][loop start=1&end=[count]] [search 2 ... &searchString=[interpret][searchString[index]][/interpret]] [founditems] [index] [/founditems] [/search] [/loop]Of course, this assumes that in the looped searches, the [index] tag appearing inside the founditems context is interpreted as the founditems index and not the loop index. But based on the results of your earlier experience, I wouldn't bet on it, so please let us know what your results are if you test this example ...================================ Kenneth Grome, WebDNA Consultant 808-737-6499, http://webdna.net ================================------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

E-Mailer (WebCatb15acgiMac) (1997) Webdna and Plesk on MS server2003 (2008) [TaxableTotal] - not working with AOL and IE (1997) Search and Change (2003) Re:Merging databases (1997) [WebDNA] SMS Gateway (2013) Solve the Problem, get the code! (2001) stripping extra spaces from form fields (2000) Tab Charactor (1997) ODBC-Interface (2000) Shopping Cart ID (1998) how would you trigger something to happen once a week - every (2001) Uh...can someone help me out with the b10? (1997) Emailer on NT not working. (1999) WebDNA Server not running (2006) EIMS Problems (1997) If search results are blank... (2003) 3rd party processor question (2003) Duplicate Cart Problem in Netscape SOLUTION (2000) Server crash (1997)