Re: much help needed NEWBIE alert

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33632
interpreted = N
texte = > So, that solved that problem!!great!> > > NOW, I still have some problems with the date issue. I need the date > displayed in a user-friendly format because the theatres show the same movie > at different times depending on the date (I think it's a weekday weekend > thing). > > When I added your suggested [Math date]{[FIELD5]}[/Math] (where FIELD5 is a > number such as 062400 for June 24, 2000), it's still returning it as 01/01 > but instead of being 01/01/00 it's now saying 01/01/1900!yeah well we're gettin' closer huh!!? It's a full 1900 years more accurate than it was!No seriously, try this: [text show=F]month=[GetChars start=1&end=2][field5][/GetChars][/text][!] [/!][text show=F]day=[GetChars start=3&end=4][field5][/GetChars][/text][!] [/!][text show=F]year=[GetChars start=5&end=6][field5][/GetChars][/text][!] [/!][text show=F]BuildDate=[month]/[day]/20[year][/text][!] [/!][text show=F]BuildDateAsDays=[Math]{[BuildDate]}[/Math][/text][!] [/!][text show=T]Date4Display=[Format Days_To_Date %a, %B %d, %Y][BuildDateAsDays][/Format][/text][!] [/!][!]---go here- http://betadoc.smithmicro.com/FormatContext.html to see how to format it however you want (like Wednesday, June 24, 2000, etc.)---[/!]> It doesn't seem > to be reading the content of that field, BUT if I leave all that out and > just have [FIELD5] there, it comes back with 062400. So, the Math context > doesn't seem to be working either. > > Also, when searching on movie or theater, it needs to list each day with the > showtimes, such as: > > Movie > 062400 times > 062500 times > etc. > > My predecessor set the search to max=1. I changed it to 10 but it's still > just returning 1 date and set of times.that means the [search] that is doing the finding of these records is only finding 1 record.> Do I need to reformulate my search > or have a nested search of some sort? such as:yeah, I think so (without actually scrutinizing you code so much that I end up rewriting it myself). see what I added to your text:> > > search for movies (at this theatre) > founditems > movie title > search for records with *any* date that also *matches the movie of the parent > founditem* > founditems > date (and showtimes for each date) > /founditems > /search > /founditems > /search > > Is that the proper sort of arrangement for such a search? it's an educated > guess ,but I don't know how good of one.you just gotta try stuff. Make little experiments one after the other until you understand one thing, then do another round of tests to grasp another thing... build it up piecemeal like that. If I spend the time to debug and rewrite it for you then I am just using that same technique. It is more fun (and less time consuming!) if I instead help you get thru' some little misunderstanding(s) you may have as you work thru it, rather than simply write code for you.-John ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: much help needed NEWBIE alert (John Butler 2000)
  2. Re: much help needed NEWBIE alert (Steven Jarvis 2000)
  3. Re: much help needed NEWBIE alert (Steven Jarvis 2000)
  4. Re: much help needed NEWBIE alert (John Butler 2000)
  5. Re: much help needed NEWBIE alert (Steven Jarvis 2000)
  6. Re: much help needed NEWBIE alert (Glenn Busbin 2000)
  7. Re: much help needed NEWBIE alert (John Butler 2000)
  8. much help needed NEWBIE alert (Steven Jarvis 2000)
> So, that solved that problem!!great!> > > NOW, I still have some problems with the date issue. I need the date > displayed in a user-friendly format because the theatres show the same movie > at different times depending on the date (I think it's a weekday weekend > thing). > > When I added your suggested [Math date]{[FIELD5]}[/Math] (where FIELD5 is a > number such as 062400 for June 24, 2000), it's still returning it as 01/01 > but instead of being 01/01/00 it's now saying 01/01/1900!yeah well we're gettin' closer huh!!? It's a full 1900 years more accurate than it was!No seriously, try this: [text show=F]month=[GetChars start=1&end=2][field5][/GetChars][/text][!] [/!][text show=F]day=[GetChars start=3&end=4][field5][/GetChars][/text][!] [/!][text show=F]year=[GetChars start=5&end=6][field5][/GetChars][/text][!] [/!][text show=F]BuildDate=[month]/[day]/20[year][/text][!] [/!][text show=F]BuildDateAsDays=[math]{[BuildDate]}[/Math][/text][!] [/!][text show=T]Date4Display=[Format Days_To_Date %a, %B %d, %Y][BuildDateAsDays][/Format][/text][!] [/!][!]---go here- http://betadoc.smithmicro.com/FormatContext.html to see how to format it however you want (like Wednesday, June 24, 2000, etc.)---[/!]> It doesn't seem > to be reading the content of that field, BUT if I leave all that out and > just have [FIELD5] there, it comes back with 062400. So, the Math context > doesn't seem to be working either. > > Also, when searching on movie or theater, it needs to list each day with the > showtimes, such as: > > Movie > 062400 times > 062500 times > etc. > > My predecessor set the search to max=1. I changed it to 10 but it's still > just returning 1 date and set of times.that means the [search] that is doing the finding of these records is only finding 1 record.> Do I need to reformulate my search > or have a nested search of some sort? such as:yeah, I think so (without actually scrutinizing you code so much that I end up rewriting it myself). see what I added to your text:> > > search for movies (at this theatre) > founditems > movie title > search for records with *any* date that also *matches the movie of the parent > founditem* > founditems > date (and showtimes for each date) > /founditems > /search > /founditems > /search > > Is that the proper sort of arrangement for such a search? it's an educated > guess ,but I don't know how good of one.you just gotta try stuff. Make little experiments one after the other until you understand one thing, then do another round of tests to grasp another thing... build it up piecemeal like that. If I spend the time to debug and rewrite it for you then I am just using that same technique. It is more fun (and less time consuming!) if I instead help you get thru' some little misunderstanding(s) you may have as you work thru it, rather than simply write code for you.-John ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ 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:

Old Topic - [OT] - server speeds. (2002) fckeditor in Browswer html editor (2005) [OT] Mozilla DOM inspector (2004) file browser. (2002) Field Problem (2000) Help! WebCat2 bug (1997) Repost: pulldown menu (2000) Netscape 3.01 can't see db in form (was problems problemsproblems) (1997) WebCat B13 Mac CGI -- Frames question (1997) RE: WebCat and image maps (1997) Emailer port change (1997) Need some Java Script Code (2003) Bug Report, maybe (1997) WCf2 and nested tags (1997) WebCatalog as a ListServ (1998) Running 2 two WebCatalog.acgi's (1996) For those of you not on the WebCatalog Beta... (1997) Multiple prices (1997) WebCat2 Append problem (B14Macacgi) (1997) Template Encrypt Speed (1998)