Re: logic help

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17995
interpreted = N
texte = >I have a list of found records that I want to update all at once. I have >them listed seperately where mid=member id number> >[founditems] > > >[/founditems] > >form submits > >Now I need to update each mid and my logic is failing. > >[loop start=1&end=[records]&advance=1] >[replace >db=memberinfo.db&eqmiddata=[math][mid[index]][/math]]status=[status][/repla >ce] >[Name] updated >[/loop] Hi Bob,You're creating several mid[index] and status[index] values in the form, but you're only using the mid[index] values in the replace context. I also think this is one of those situations where you need to put your nested varuables into [interpret] contexts instead of that [math] context. I believe this should work for you:[loop start=1&end=[records]] [replace db=memberinfo.db&eqmiddata=[interpret][mid[index]][/interpret]]status=[interpret][status[index]][/interpret][/replace] [Name] updated
[/loop]Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Logic Help Needed (Tim Robinson 2003)
  2. Re: Logic Help Needed (Clint Davis 2003)
  3. Re: Logic Help Needed (John Peacock 2003)
  4. Logic Help Needed (Clint Davis 2003)
  5. Re: logic help (Kenneth Grome 1998)
  6. logic help (bob 1998)
  7. Re: logic help (Rob Marquardt 1998)
>I have a list of found records that I want to update all at once. I have >them listed seperately where mid=member id number> >[founditems] > > >[/founditems] > >form submits > >Now I need to update each mid and my logic is failing. > >[loop start=1&end=[records]&advance=1] >[replace >db=memberinfo.db&eqmiddata=[math][mid[index]][/math]]status=[status][/repla >ce] >[Name] updated >[/loop] Hi Bob,You're creating several mid[index] and status[index] values in the form, but you're only using the mid[index] values in the replace context. I also think this is one of those situations where you need to put your nested varuables into [interpret] contexts instead of that [math] context. I believe this should work for you:[loop start=1&end=[records]] [replace db=memberinfo.db&eqmiddata=[interpret][mid[index]][/interpret]]status=[interpret][status[index]][/interpret][/replace] [Name] updated
[/loop]Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net 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:

Bug or syntax error on my part? (1997) Initiating NewCart (1997) emailer (1997) Setting up WebCatalog with Retail Pro data (1996) emailer setup (1997) Searching Dates (2000) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) denied access (1997) Purchae error - Fixed to a degree (1997) Close-to Comparison Code (1998) Freeze (2003) OT: Euros to Dollars (2008) Cart Database (1999) Where's Cart Created ? (1997) Searching multiple fields from one form field (1997) HomePage Caution (1997) Car Database (2002) cookies and [returnraw] (1997) How To question on setting up downloads (1997) installing webcatalog problem. HELP! (1998)