Re:Searching for ALL / empty form field
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14615
interpreted = N
texte = >Ken,>>Please have a look at http://secure.ims1.com/hlc/Search.tmplI looked already, but WebCat is processing that page so I cannot seeyour WebDNA code. You have to post it in your email message so itdoesn't get interpreted. Either that, or create another page thatincludes this page completely within a [raw] context so I can seewhat you've got ... :)>I guess what I'm getting at is this: I want the fields in which no value is>specified by the user to be ignored so that if a user doesn't select any>items from the popups or type any text or numbers into the fields, all the>records will be returned.WebCat does this automatically, you don't ever have to think aboutit. You're making this too difficult, that's all, it's designed to besuper-easy ... :)>AND>>If the user does select an item from the a popup or types text or numbers>into a field then the search is performed on only those criteria.Yes, that's exactly what WebCat does if you write your WebDNA code properly.>I do this all the time with Tango which allows one to specify that when>fields are empty they are not used as search criteria (allows you to set>include empty to false).You don't have to specify this in WebCat, it's automatic.>Am I making sense? I only want to find records>that have fields that match what is specified by the user in the search>form, but if they specify nothing, then I want all the records to be>returned.Yes, yes, it makes sense, and it's *supposed* to be a no-brainerbecause that's exactly how WebCat is designed to work. You'reprobably missing the rq tags that make WebCat search fields withdata in them with the AND concatenator instead of the ORconcatenator, but since I can't see your WebDNA until you post it tothe list in an email message, I have no way to know for sure ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/.
Associated Messages, from the most recent to the oldest:
>Ken,>>Please have a look at http://secure.ims1.com/hlc/Search.tmplI looked already, but WebCat is processing that page so I cannot seeyour WebDNA code. You have to post it in your email message so itdoesn't get interpreted. Either that, or create another page thatincludes this page completely within a
[raw] context so I can seewhat you've got ... :)>I guess what I'm getting at is this: I want the fields in which no value is>specified by the user to be ignored so that if a user doesn't select any>items from the popups or type any text or numbers into the fields, all the>records will be returned.WebCat does this automatically, you don't ever have to think aboutit. You're making this too difficult, that's all, it's designed to besuper-easy ... :)>AND>>If the user does select an item from the a popup or types text or numbers>into a field then the search is performed on only those criteria.Yes, that's exactly what WebCat does if you write your WebDNA code properly.>I do this all the time with Tango which allows one to specify that when>fields are empty they are not used as search criteria (allows you to set>include empty to false).You don't have to specify this in WebCat, it's automatic.>Am I making sense? I only want to find records>that have fields that match what is specified by the user in the search>form, but if they specify nothing, then I want all the records to be>returned.Yes, yes, it makes sense, and it's *supposed* to be a no-brainerbecause that's exactly how WebCat is designed to work. You'reprobably missing the rq tags that make WebCat search fields withdata in them with the AND concatenator instead of the ORconcatenator, but since I can't see your WebDNA until you post it tothe list in an email message, I have no way to know for sure ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/.
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:
[ModDate] & [ModTime] ? (1997)
A Couple Photos from the SmithMicro Booth at MacWorld (2000)
Help needed! (1998)
[setLineItem] does not work. (1998)
[LOOKUP] (1997)
Stumpted Again (1997)
Showif, Hideif reverse logic ? (1997)
[WebDNA] search limit using WO? (2012)
Bannersleuth (2000)
WebCatalog NT beta 18 problem (1997)
SiteGuard Use Question (1997)
Re:2nd WebCatalog2 Feature Request (1996)
AuthorizeNet & StoreBuilder (2002)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
XML and CDATA (2004)
Multiple prices (1997)
WebCat2: Items xx to xx shown, etc. (1997)
[ot] G5 Desktop as Server (2004)
Plugin or CGI or both (1997)
Banner Ad example (Typhoon) and WebCatalog (1997)