Re: finding child records of child records of child records... with minimal code
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 32719
interpreted = N
texte = fantastic! (Crosses fingers that stack memory or whatever it is called does not become aproblem as this db grows HUGE)-JohnJohn Peacock wrote:> Yes, that is a good job for recursion. You want to write an include> file that should include itself, with the parameter of the current ID.> This will generate the full tree of found records.>> In pseudo-code form (i.e. this is guaranteed to _not_ run):>> [Include file=includefile.inc&myID=[ID]] [!] look for top record [/!]>> and the include file would be:>> [Search db=file.db&parentID=[myID]]> [founditems]> [ReplaceFoundItems]flag=Y[/ReplaceFoundItems] (if you have 4.0)> [Include file=thisfile.inc&myID=[ID]]> [/founditems]> [/search]>> HTH>> John Peacock>>-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
fantastic! (Crosses fingers that stack memory or whatever it is called does not become aproblem as this db grows HUGE)-JohnJohn Peacock wrote:> Yes, that is a good job for recursion. You want to write an include> file that should include itself, with the parameter of the current ID.> This will generate the full tree of found records.>> In pseudo-code form (i.e. this is guaranteed to _not_ run):>> [Include file=includefile.inc&myID=[ID]] [!] look for top record [/!]>> and the include file would be:>> [Search db=file.db&parentID=[myID]]> [founditems]> [replacefounditems]flag=Y[/ReplaceFoundItems] (if you have 4.0)> [Include file=thisfile.inc&myID=[ID]]> [/founditems]> [/search]>> HTH>> John Peacock>>-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
John Butler
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:
Damn actions/links...... (2001)
(2000)
Help DebugLevel Content-type: text/html (1998)
[LOOKUP] (1997)
Nesting format tags (1997)
question: search return in order (1997)
[WebDNA] Upload file to mysql (2017)
Re[2]: Using [Include] Context (1999)
Any help gratefully appreciated (2001)
[WebDNA] Old Problem, the exclamation point (2014)
Who is John Jakovich? (1999)
WC2.0 Memory Requirements (1997)
WebCatalog 2.0 & WebDNA docs in HTML ... (1997)
[Cart] ... (1997)
3.0 to 4.0 (2000)
Supressing Error Messages (1998)
HideIf ip= OR ip= (1998)
RSS parser (2002)
FlushDatabase Suggestion (1998)
Problems with ^ could be solved with [REPLACE CHARACTERS] (1997)