Re: [WebDNA] Advanced search 'rq' problem

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110501
interpreted = N
texte = > Hi all, >=20 > Trying to build a fairly complex search form for a client. I am = trying to allow the client determine whether a particular search = criteria is required on a field by field basis. >=20 > Is there a parameter similar to 'comp' that I can use to set the = required status for a field. Something like: >=20 > &FIELDNAMErq=3DT >=20 > So in the form code I could have: >=20 > Hi Tim I don't know what you mean by "comp", here ... but to require one of = your [search] comparison parameters, you just put "rq" at the end of the = first part of the parameter.. you must know/remember this ... So if I want the "ROOM" field to be required, then I do ...&eqROOMdatarq=3D[theRoomSearchStringToCompareToData]... If I had done this instead: ...&eqROOMdata=3D[theRoomSearchStringToCompareToData]... ...then that comparison is just one possible reason the search might = find records... depending on what other params you built up. There may be more clever ways of doing what you ask, but if I understand = your need correctly, you could do this: ...&eqROOMdata[isROOMrequired]=3D[theRoomSearchStringToCompareToData]... HTH -Govinda= 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)
> Hi all, >=20 > Trying to build a fairly complex search form for a client. I am = trying to allow the client determine whether a particular search = criteria is required on a field by field basis. >=20 > Is there a parameter similar to 'comp' that I can use to set the = required status for a field. Something like: >=20 > &FIELDNAMErq=3DT >=20 > So in the form code I could have: >=20 > Hi Tim I don't know what you mean by "comp", here ... but to require one of = your [search] comparison parameters, you just put "rq" at the end of the = first part of the parameter.. you must know/remember this ... So if I want the "ROOM" field to be required, then I do ...&eqROOMdatarq=3D[theRoomSearchStringToCompareToData]... If I had done this instead: ...&eqROOMdata=3D[theRoomSearchStringToCompareToData]... ...then that comparison is just one possible reason the search might = find records... depending on what other params you built up. There may be more clever ways of doing what you ask, but if I understand = your need correctly, you could do this: ...&eqROOMdata[isROOMrequired]=3D[theRoomSearchStringToCompareToData]... HTH -Govinda= 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:

2 easy questions re: [showif] and [sendmail] (1997) Re:no [search] with NT (1997) Cyberstudio and WebDNA (1997) Re[3]: 2nd WebCatalog2 Feature Request (1996) Users and groups for local directories (1999) SQLCONNECT (2005) [WebDNA] New Mountain Lion OSX Server (2013) Credit Card Checksum (1997) RE: Writefile outside WebSTAR hierarchy? (1997) Help! WebCat2 bug (1997) [append] vs. [appendfile] delta + question? (1997) need basic .xml help (2006) Loop into field (1998) name of file (2002) Trigger request for 4.1 (2000) docs for WebCatalog2 (1997) Founditems context returning only 1 item (1997) [WebDNA] Installation of WebDNA 6.2 on Ubuntu 12.04 (2013) WebCatalog [FoundItems] Problem - AGAIN - (1997) Customizing WebDelivery.html (1998)