Re: hideifs using [date]

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23510
interpreted = N
texte = When using the [math date] context, the result is a dateIf your date format is %m/%d/%Y then it could cause some problems in comparingtake away the date from the math context so it will only be [math]{[enddate]}[/math]<[math]{[date]}[/math]Try that /Martin>Hello- > >We are trying to list the results of a search, but hide all of the ones >who'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 this >instance, catid=2 means that it is an event. This is our code: > >------------------ >[founditems] > >[hideif [catid]=2] >href=detail.html?command=search&db=library.db&eqitemiddata=[itemid]>[itemname >] > - [desc]

>[/hideif] > >[showif [catid]=2] >[hideif [Math date]{[enddate]}[/math]<[Math date]{[date]}[/math]] > >href=detail.html?command=search&db=library.db&eqitemiddata=[itemid]>[itemname >] > - [desc]

> >[/hideif] >[/showif] > >[/founditems] >------------------ > >It's not supposed to, but this code is listing all of the events that were >found by the search, including the ones that are older than today. > >Since the list of founditems includes lots of different catid's as well, so >I can't put the date search parameters in the search context from the >previous page. > >Can someone tell me why this isn't working? > > >Josh Knauer >http://www.knauer.com >412-420-6400 -phone >412-420-6404 -fax > >P60E7 A28B 91C0 E5D3 EC5C A53F DB28 B350 Associated Messages, from the most recent to the oldest:

    
  1. Re: hideifs using [date] (Martin Bech 1999)
  2. hideifs using [date] (Josh Knauer 1999)
When using the [math date] context, the result is a dateIf your date format is %m/%d/%Y then it could cause some problems in comparingtake away the date from the math context so it will only be [math]{[enddate]}[/math]<[math]{[date]}[/math]Try that /Martin>Hello- > >We are trying to list the results of a search, but hide all of the ones >who'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 this >instance, catid=2 means that it is an event. This is our code: > >------------------ >[founditems] > >[hideif [catid]=2] >href=detail.html?command=search&db=library.db&eqitemiddata=[itemid]>[itemname >] > - [desc]

>[/hideif] > >[showif [catid]=2] >[hideif [Math date]{[enddate]}[/math]<[Math date]{[date]}[/math]] > >href=detail.html?command=search&db=library.db&eqitemiddata=[itemid]>[itemname >] > - [desc]

> >[/hideif] >[/showif] > >[/founditems] >------------------ > >It's not supposed to, but this code is listing all of the events that were >found by the search, including the ones that are older than today. > >Since the list of founditems includes lots of different catid's as well, so >I can't put the date search parameters in the search context from the >previous page. > >Can someone tell me why this isn't working? > > >Josh Knauer >http://www.knauer.com >412-420-6400 -phone >412-420-6404 -fax > >P60E7 A28B 91C0 E5D3 EC5C A53F DB28 B350 Martin Bech

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:

WCS Newbie question (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) thankyou.tmpl (1997) b12 cannot limit records returned and more. (1997) [WebDNA] WebDNA Health Monitor (2014) Here we go again... was: DDEConnect not working (2006) OK, here goes... (1997) Is the list server working? (1998) Running 2 two WebCatalog.acgi's (1996) A multi-processor savvy WebCatalog? (1997) Upload images to non DNA server (2004) Re1000002: Setting up shop (1997) Bounced Emails (2005) MacAuthorize order data fields WAS:How To question... (1997) Re:Can this be done? (1997) Forcing price recalculation in shopping cart (1998) Caching [include] files ... (1997) Time Display from Database (1997) preserving the zero's (1999) Merging databases (1997)