hideifs using [date]
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23501
interpreted = N
texte = Hello-We are trying to list the results of a search, but hide all of the oneswho's enddate field is older than today. Just for explination's sake,the catid is our field for what type of category it is, and in thisinstance, catid=2 means that it is an event. This is our code:------------------[founditems][hideif [catid]=2]
[itemname] - [desc]
[/hideif][showif [catid]=2][hideif [Math date]{[enddate]}[/math]<[Math date]{[date]}[/math]]
[itemname] - [desc]
[/hideif][/showif][/founditems]------------------It's not supposed to, but this code is listing all of the events that werefound by the search, including the ones that are older than today.Since the list of founditems includes lots of different catid's as well, soI can't put the date search parameters in the search context from theprevious page.Can someone tell me why this isn't working?Josh Knauerhttp://www.knauer.com412-420-6400 -phone412-420-6404 -faxP60E7 A28B 91C0 E5D3 EC5C A53F DB28 B350
Associated Messages, from the most recent to the oldest:
Hello-We are trying to list the results of a search, but hide all of the oneswho's enddate field is older than today. Just for explination's sake,the catid is our field for what type of category it is, and in thisinstance, catid=2 means that it is an event. This is our code:------------------
[founditems][hideif [catid]=2]
[itemname] - [desc]
[/hideif][showif [catid]=2][hideif [Math date]{[enddate]}[/math]<[Math date]{
[date]}[/math]]
[itemname] - [desc]
[/hideif][/showif][/founditems]------------------It's not supposed to, but this code is listing all of the events that werefound by the search, including the ones that are older than today.Since the list of founditems includes lots of different catid's as well, soI can't put the date search parameters in the search context from theprevious page.Can someone tell me why this isn't working?Josh Knauerhttp://www.knauer.com412-420-6400 -phone412-420-6404 -faxP60E7 A28B 91C0 E5D3 EC5C A53F DB28 B350
Josh Knauer
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:
problem with [Format Days_To_Date] (2000)
WebCat2b15MacPlugin - showing [math] (1997)
% (mod) was looping table rows (1999)
[WebDNA] listvariables (2014)
RE: MS Commerce Comparison (long) (1998)
listfiles-looking for slick solution (1997)
Content search & results (2008)
Dates (2002)
[WebDNA] JSON Parser (2014)
t or f (1997)
RAM problems, [appendfile] problems (1998)
Off Topic: Help Wanted (1997)
Alternating colors (1997)
OT: Backup Strategies (2007)
please anybody help (2005)
math a various prices (1997)
[WebDNA] Which WebDNA version? (2009)
Help with nested search (1998)
It just Does't add up!!! (1997)
[Sum] function? (1997)