Re: [WebDNA] Advanced search 'rq' problem

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110507
interpreted = N
texte = --Apple-Mail=_97BC1FA9-9214-4D5D-B4CA-37D4123D3183 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Yep=85=20 Any RQ field is going to require match in order for it to be found in = results. I would just use a checkbox to allow them to require the field or not = and then use a simple hideif to include it into the search. search = db=3Dpeople.db&sSECTIONSdata=3D|136407924352028766|&sBOFFICERdata=3D|13641= 5894854176046|&sCOFFICERdata=3D|136415955554188875|,|136415947654187207|&s= COMMITTEEdata=3D|136416335154313234|,|136416342654314722|&sSECTIONScomp=3D= wo&sBOFFICERcomp=3Dwo&sCOFFICERcomp=3Dwo&sCOMMITTEEcomp=3Dwo&nesEMAILdata[= showif [emailrequired]=3Dyes]rq[/showif]=3D[blank] FWIW, I have gotten into a habit of setting my entire search string as a = text variable above my searches. [text] = mysearchVAR=3DsSECTIONSdata=3D|136407924352028766|&sBOFFICERdata=3D|136415= 894854176046|&sCOFFICERdata=3D|136415955554188875|,|136415947654187207|&sC= OMMITTEEdata=3D|136416335154313234|,|136416342654314722|&sSECTIONScomp=3Dw= o&sBOFFICERcomp=3Dwo&sCOFFICERcomp=3Dwo&sCOMMITTEEcomp=3Dwo&nesEMAILdata[s= howif [emailrequired]=3D]rq[/showif]=3D[blank][/text] And then using the following for the search. search db=3Dpeople.db&[mysearchVAR] I do this for a few of reasons. First, for me, I find it far easier to = debug because I also do a lot of: [text]mysearch=3DsSECTIONSdata=3D|136407924352028766|[!] [/!]&sBOFFICERdata=3D|136415894854176046|[!] [/!]&sCOFFICERdata=3D|136415955554188875|,|136415947654187207|[!] [/!]&sCOMMITTEEdata=3D|136416335154313234|,|136416342654314722|[!] [/!]&sSECTIONScomp=3Dwo[!] [/!]&sBOFFICERcomp=3Dwo[!] [/!]&sCOFFICERcomp=3Dwo[!] [/!]&sCOMMITTEEcomp=3Dwo[!] [/!]&nesEMAILdata[showif [emailrequired]=3D]rq[/showif]=3D[blank][!] [/!][/text] Second, the string becomes easily usable on the page again (something I = find I use quite a bit) and if I have to later make changes to that = search logic then I don't have to worry about getting them all changed. = - Just the VAR And lastly, For debugging I often include a formvariables and = listvariables at the bottom of my page wrapped in a showif based on = either a debug=3Dyes or cookie set on an admin login=85 [showif [admincookie]=3Dyes] [listvariables][name] =3D [value]
[listvariables] [/showif] And this shows my my search strings on the browser making = troubleshooting a lot easier. Because I do everything in [SQL] and I am passing strings anyway it was = a natural progression and really worked well. Especially the debug mode = on the bottom where I can quickly spot my search issues. When your = search string is full of variables (and not hard coded data like your = example) this is a huge benefit because you can watch the variables = change and see if there is a problem in the dynamic search string. Anyway=85 I think the showif on the RQ is all you really need. HTH Alex On Jul 15, 2013, at 12:47 PM, John Butler = wrote: >> search = db=3Dpeople.db&sSECTIONSdata=3D|136407924352028766|&sBOFFICERdata=3D|13641= 5894854176046|&sCOFFICERdata=3D|136415955554188875|,|136415947654187207|&s= COMMITTEEdata=3D|136416335154313234|,|136416342654314722|&sSECTIONScomp=3D= wo&sBOFFICERcomp=3Dwo&sCOFFICERcomp=3Dwo&sCOMMITTEEcomp=3Dwo&nesEMAILdatar= q=3D[blank] --Apple-Mail=_97BC1FA9-9214-4D5D-B4CA-37D4123D3183 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Yep=85 
Any RQ field is going to require  match in order = for it to be found in results.

I would just use = a checkbox to allow them to require the field or not and then use a = simple hideif to include it into the = search.


search = db=3Dpeople.db&sSECTIONSdata=3D|136407924352028766|&sBOFFICERdata=3D= |136415894854176046|&sCOFFICERdata=3D|136415955554188875|,|13641594765= 4187207|&sCOMMITTEEdata=3D|136416335154313234|,|136416342654314722|&am= p;sSECTIONScomp=3Dwo&sBOFFICERcomp=3Dwo&sCOFFICERcomp=3Dwo&sCO= MMITTEEcomp=3Dwo&nesEMAILdata[showif = [emailrequired]=3Dyes]rq[/showif]=3D[blank]

=

FWIW, I have gotten into a habit of setting my = entire search string as a text variable above my = searches.

[text] mysearchVAR=3DsSECTIONSdata= =3D|136407924352028766|&sBOFFICERdata=3D|136415894854176046|&sCOFF= ICERdata=3D|136415955554188875|,|136415947654187207|&sCOMMITTEEdata=3D= |136416335154313234|,|136416342654314722|&sSECTIONScomp=3Dwo&sBOFF= ICERcomp=3Dwo&sCOFFICERcomp=3Dwo&sCOMMITTEEcomp=3Dwo&nesEMAILd= ata[showif = [emailrequired]=3D]rq[/showif]=3D[blank][/text]

And then using the following for the = search.

search = db=3Dpeople.db&[mysearchVAR]


I= do this for a few of reasons. First, for me, I find it far easier to = debug because I also do a lot = of:

[text]mysearch=3DsSECTIONSdata=3D|136407= 924352028766|[!]
[/!]&sBOFFICERdata=3D|136415894854176046|[!= ]
[/!]&sCOFFICERdata=3D|136415955554188875|,|136415947654187= 207|[!]
[/!]&sCOMMITTEEdata=3D|136416335154313234|,|13641634= 2654314722|[!]
[/!]&sSECTIONScomp=3Dwo[!]
[/!]&= ;sBOFFICERcomp=3Dwo[!]
[/!]&sCOFFICERcomp=3Dwo[!]
= [/!]&sCOMMITTEEcomp=3Dwo[!]
[/!]&nesEMAILdata[showif = [emailrequired]=3D]rq[/showif]=3D[blank][!]
[/!][/text]

Second, the string becomes easily usable on = the page again (something I find I use quite a bit) and if I have to = later make changes to that search logic then I don't have to worry about = getting them all changed. - Just the = VAR


And lastly, For debugging I = often include a formvariables and listvariables at the bottom of my page = wrapped in a showif based on either a debug=3Dyes or cookie set on an = admin login=85

[showif = [admincookie]=3Dyes]
[listvariables][name] =3D = [value]<br>[listvariables]
[/showif]

<= div>
And this shows my my search strings on the browser = making troubleshooting a lot easier.

Because I = do everything in [SQL] and I am passing strings anyway it was a natural = progression and really worked well. Especially the debug mode on the = bottom where I can quickly spot my search issues. When your search = string is full of variables (and not hard coded data like your example) = this is a huge benefit because you can watch the variables change and = see if there is a problem in the dynamic search = string.


Anyway=85 I think the = showif on the RQ is all you really = need.

HTH
Alex







On Jul 15, 2013, at 12:47 PM, John Butler <govinda.webdnatalk@gmail.com<= /a>> wrote:

search = db=3Dpeople.db&sSECTIONSdata=3D|136407924352028766|&sBOFFICERdata=3D= |136415894854176046|&sCOFFICERdata=3D|136415955554188875|,|13641594765= 4187207|&sCOMMITTEEdata=3D|136416335154313234|,|136416342654314722|&am= p;sSECTIONScomp=3Dwo&sBOFFICERcomp=3Dwo&sCOFFICERcomp=3Dwo&sCO= MMITTEEcomp=3Dwo&nesEMAILdatarq=3D[blank]

= --Apple-Mail=_97BC1FA9-9214-4D5D-B4CA-37D4123D3183-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Advanced search 'rq' problem (Alex McCombie 2013)
  2. Re: [WebDNA] Advanced search 'rq' problem (WebDNA 2013)
  3. Re: [WebDNA] Advanced search 'rq' problem (John Butler 2013)
  4. Re: [WebDNA] Advanced search 'rq' problem (Tom Duke 2013)
  5. Re: [WebDNA] Advanced search 'rq' problem (WebDNA 2013)
  6. Re: [WebDNA] Advanced search 'rq' problem (Tom Duke 2013)
  7. Re: [WebDNA] Advanced search 'rq' problem (John Butler 2013)
  8. [WebDNA] Advanced search 'rq' problem (Tom Duke 2013)
--Apple-Mail=_97BC1FA9-9214-4D5D-B4CA-37D4123D3183 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Yep=85=20 Any RQ field is going to require match in order for it to be found in = results. I would just use a checkbox to allow them to require the field or not = and then use a simple hideif to include it into the search. search = db=3Dpeople.db&sSECTIONSdata=3D|136407924352028766|&sBOFFICERdata=3D|13641= 5894854176046|&sCOFFICERdata=3D|136415955554188875|,|136415947654187207|&s= COMMITTEEdata=3D|136416335154313234|,|136416342654314722|&sSECTIONScomp=3D= wo&sBOFFICERcomp=3Dwo&sCOFFICERcomp=3Dwo&sCOMMITTEEcomp=3Dwo&nesEMAILdata[= showif [emailrequired]=3Dyes]rq[/showif]=3D[blank] FWIW, I have gotten into a habit of setting my entire search string as a = text variable above my searches.
[text] = mysearchVAR=3DsSECTIONSdata=3D|136407924352028766|&sBOFFICERdata=3D|136415= 894854176046|&sCOFFICERdata=3D|136415955554188875|,|136415947654187207|&sC= OMMITTEEdata=3D|136416335154313234|,|136416342654314722|&sSECTIONScomp=3Dw= o&sBOFFICERcomp=3Dwo&sCOFFICERcomp=3Dwo&sCOMMITTEEcomp=3Dwo&nesEMAILdata[s= howif [emailrequired]=3D]rq[/showif]=3D[blank][/text] And then using the following for the search. search db=3Dpeople.db&[mysearchVAR] I do this for a few of reasons. First, for me, I find it far easier to = debug because I also do a lot of: [text]mysearch=3DsSECTIONSdata=3D|136407924352028766|[!] [/!]&sBOFFICERdata=3D|136415894854176046|[!] [/!]&sCOFFICERdata=3D|136415955554188875|,|136415947654187207|[!] [/!]&sCOMMITTEEdata=3D|136416335154313234|,|136416342654314722|[!] [/!]&sSECTIONScomp=3Dwo[!] [/!]&sBOFFICERcomp=3Dwo[!] [/!]&sCOFFICERcomp=3Dwo[!] [/!]&sCOMMITTEEcomp=3Dwo[!] [/!]&nesEMAILdata[showif [emailrequired]=3D]rq[/showif]=3D[blank][!] [/!][/text] Second, the string becomes easily usable on the page again (something I = find I use quite a bit) and if I have to later make changes to that = search logic then I don't have to worry about getting them all changed. = - Just the VAR And lastly, For debugging I often include a formvariables and = listvariables at the bottom of my page wrapped in a showif based on = either a debug=3Dyes or cookie set on an admin login=85 [showif [admincookie]=3Dyes] [listvariables][name] =3D [value]
[listvariables] [/showif] And this shows my my search strings on the browser making = troubleshooting a lot easier. Because I do everything in [SQL] and I am passing strings anyway it was = a natural progression and really worked well. Especially the debug mode = on the bottom where I can quickly spot my search issues. When your = search string is full of variables (and not hard coded data like your = example) this is a huge benefit because you can watch the variables = change and see if there is a problem in the dynamic search string. Anyway=85 I think the showif on the RQ is all you really need. HTH Alex On Jul 15, 2013, at 12:47 PM, John Butler = wrote: >> search = db=3Dpeople.db&sSECTIONSdata=3D|136407924352028766|&sBOFFICERdata=3D|13641= 5894854176046|&sCOFFICERdata=3D|136415955554188875|,|136415947654187207|&s= COMMITTEEdata=3D|136416335154313234|,|136416342654314722|&sSECTIONScomp=3D= wo&sBOFFICERcomp=3Dwo&sCOFFICERcomp=3Dwo&sCOMMITTEEcomp=3Dwo&nesEMAILdatar= q=3D[blank] --Apple-Mail=_97BC1FA9-9214-4D5D-B4CA-37D4123D3183 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Yep=85 
Any RQ field is going to require  match in order = for it to be found in results.

I would just use = a checkbox to allow them to require the field or not and then use a = simple hideif to include it into the = search.


search = db=3Dpeople.db&sSECTIONSdata=3D|136407924352028766|&sBOFFICERdata=3D= |136415894854176046|&sCOFFICERdata=3D|136415955554188875|,|13641594765= 4187207|&sCOMMITTEEdata=3D|136416335154313234|,|136416342654314722|&am= p;sSECTIONScomp=3Dwo&sBOFFICERcomp=3Dwo&sCOFFICERcomp=3Dwo&sCO= MMITTEEcomp=3Dwo&nesEMAILdata[showif = [emailrequired]=3Dyes]rq[/showif]=3D[blank]

=

FWIW, I have gotten into a habit of setting my = entire search string as a text variable above my = searches.

[text] mysearchVAR=3DsSECTIONSdata= =3D|136407924352028766|&sBOFFICERdata=3D|136415894854176046|&sCOFF= ICERdata=3D|136415955554188875|,|136415947654187207|&sCOMMITTEEdata=3D= |136416335154313234|,|136416342654314722|&sSECTIONScomp=3Dwo&sBOFF= ICERcomp=3Dwo&sCOFFICERcomp=3Dwo&sCOMMITTEEcomp=3Dwo&nesEMAILd= ata[showif = [emailrequired]=3D]rq[/showif]=3D[blank][/text]

And then using the following for the = search.

search = db=3Dpeople.db&[mysearchVAR]


I= do this for a few of reasons. First, for me, I find it far easier to = debug because I also do a lot = of:

[text]mysearch=3DsSECTIONSdata=3D|136407= 924352028766|[!]
[/!]&sBOFFICERdata=3D|136415894854176046|[!= ]
[/!]&sCOFFICERdata=3D|136415955554188875|,|136415947654187= 207|[!]
[/!]&sCOMMITTEEdata=3D|136416335154313234|,|13641634= 2654314722|[!]
[/!]&sSECTIONScomp=3Dwo[!]
[/!]&= ;sBOFFICERcomp=3Dwo[!]
[/!]&sCOFFICERcomp=3Dwo[!]
= [/!]&sCOMMITTEEcomp=3Dwo[!]
[/!]&nesEMAILdata[showif = [emailrequired]=3D]rq[/showif]=3D[blank][!]
[/!][/text]

Second, the string becomes easily usable on = the page again (something I find I use quite a bit) and if I have to = later make changes to that search logic then I don't have to worry about = getting them all changed. - Just the = VAR


And lastly, For debugging I = often include a formvariables and listvariables at the bottom of my page = wrapped in a showif based on either a debug=3Dyes or cookie set on an = admin login=85

[showif = [admincookie]=3Dyes]
[listvariables][name] =3D = [value]<br>[listvariables]
[/showif]

<= div>
And this shows my my search strings on the browser = making troubleshooting a lot easier.

Because I = do everything in [SQL] and I am passing strings anyway it was a natural = progression and really worked well. Especially the debug mode on the = bottom where I can quickly spot my search issues. When your search = string is full of variables (and not hard coded data like your example) = this is a huge benefit because you can watch the variables change and = see if there is a problem in the dynamic search = string.


Anyway=85 I think the = showif on the RQ is all you really = need.

HTH
Alex







= --Apple-Mail=_97BC1FA9-9214-4D5D-B4CA-37D4123D3183-- Alex McCombie

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:

Erotic Sites (1997) WebCat2 - Getting to the browser's username/password data (1997) PC Auth Hub+Merchant (1998) More on the email templates (1997) Monthly Help File (1997) one item in several different categories? (2000) international time (1997) Problem with textA (2000) Error Template (1999) Re[2]: 2nd WebCatalog2 Feature Request (1996) I can help! (1996) Micro-managing External Links (2006) Conference? Heres my sniplete contribution! (1998) Protect vs Authenicate (1997) docs for WebCatalog2 (1997) WCS Newbie question (1997) Three Guesses? (2004) More on the email templates (1997) (2004) Search/sort in URL Was: GuestBook example (1997)