Re: This [search] worked before update to 4.5.1

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48505
interpreted = N
texte = >This snippet is supposed to calculate the number of new customers in >a given time frame. It was working before the most recent WebDNA >update (4.5.1), now it's not. Nothing changed on the page. > > >[math]newcust=0[/math] > >[search >db=orders.db&neordernumdata=[blank]&group1field=orderdate&group2field=orderdate&gegroup1datarq=[startdate]&legroup2datarq=[enddate]] > > [founditems] > > [search db=orders.db&eqnamedatarq=[name]] > [showif [numfound]=1] > [math]newcust=[newcust]+1[/math] > [/showif] > [/search] > > [/founditems] > >[/search] > >Basically, [newcust] is always equalling 1 now... > >I'm stumped. Platform is OSX.Seems like a bug in the math context in the OSX version. Have you tried this:[math]newcust=newcust+1[/math]The brackets around the [newcust] variable are (supposedly) unnecessary -- but in previous versions the code still worked with the brackets in there. Maybe there's an undocumented change in this version, or maybe only on the OSX platform in this version?Sincerely, Kenneth Grome--------------------------------------------------- WebDNA Professional Training and Development Center Cebu City, Philippines +63 (32) 255-6921 Wholesale WebDNA programming for only $20 per hour! ---------------------------------------------------------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: This [search] worked before update to 4.5.1 (Kenneth Grome 2003)
  2. Re: This [search] worked before update to 4.5.1 (Brian Fries 2003)
  3. Re: This [search] worked before update to 4.5.1 (WJ Starck 2003)
  4. Re: This [search] worked before update to 4.5.1 (Gary Krockover 2003)
  5. Re: This [search] worked before update to 4.5.1 (Kenneth Grome 2003)
  6. Re: This [search] worked before update to 4.5.1 (WJ Starck 2003)
  7. Re: This [search] worked before update to 4.5.1 (Gary Krockover 2003)
  8. This [search] worked before update to 4.5.1 (WJ Starck 2003)
>This snippet is supposed to calculate the number of new customers in >a given time frame. It was working before the most recent WebDNA >update (4.5.1), now it's not. Nothing changed on the page. > > >[math]newcust=0[/math] > >[search >db=orders.db&neordernumdata=[blank]&group1field=orderdate&group2field=orderdate&gegroup1datarq=[startdate]&legroup2datarq=[enddate]] > > [founditems] > > [search db=orders.db&eqnamedatarq=[name]] > [showif [numfound]=1] > [math]newcust=[newcust]+1[/math] > [/showif] > [/search] > > [/founditems] > >[/search] > >Basically, [newcust] is always equalling 1 now... > >I'm stumped. Platform is OSX.Seems like a bug in the math context in the OSX version. Have you tried this:[math]newcust=newcust+1[/math]The brackets around the [newcust] variable are (supposedly) unnecessary -- but in previous versions the code still worked with the brackets in there. Maybe there's an undocumented change in this version, or maybe only on the OSX platform in this version?Sincerely, Kenneth Grome--------------------------------------------------- WebDNA Professional Training and Development Center Cebu City, Philippines +63 (32) 255-6921 Wholesale WebDNA programming for only $20 per hour! ---------------------------------------------------------------------------------------------------------------- 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://webdna.smithmicro.com/ 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:

table import function crashes server (2008) show all problem (1997) Newbie questions (1998) Nested search (1997) [WebDNA] Ubuntu 18.04 & WebDNA server edition (2019) bypassing typo's (1998) [WebDNA] Version 7 Config problem (2011) no global [username] or [password] displayed ... (1997) shownext (1997) [ot] Any One Want A WebDNA Billing Program? (2003) WebCatalog and Dreamweaver (1999) OT - quiet on the list today - here's something (2004) ftp access on Macos X (2000) Showif for mulitple variations (1997) Online reference (1997) tcp connect includes (1999) [WebDNA] How can I uninstall WebDNA on OS X Sierra? (2017) Nested Loops and SHOWIFs (1997) possible, WebCat2.0 and checkboxes-restated (1997) [WebDNA] CMS in WEBDNA (2009)