Re: Replace/Commit not Replacing/Commiting
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35918
interpreted = N
texte = Have you removed the active part of the replace, so you can see whetheryou actually have the correct information there. For example:[raw][replace[/raw]db=customernum.txt&eqskudata=fred]customernum=[mycustomernum][raw][/replace][/raw]In general, the [URL] context is not going to every be useful for mathvariables. You could try [math]mycustomernum[/math] just for the funof it, too.John PeacockJohn Davies wrote:> > Nope.> > MacOS9.04> WebTen 3.0> WebCat 4.02b4 (Plugin)> 192 Mb Ram> 1Mb VMem> 193 Mb Total Ram> > Here is the code as I have it now.> > [orderfile cart=[cart]]> [showif [header10]=new]> [showif [subtotal]=0]> > [setheader cart=[cart]]header11=FA[mydate][lookup> db=customernum.txt&lookinfield=sku&value=fred&returnfield=customernum¬fou> nd=0][/setheader]> > > > [replace> db=customernum.txt&eqskudata=fred]customernum=[url][mycustomernum][/url][/re> place]> > [/showif]> [/showif]> [/orderfile]> > Here is the customernum.txt file:> > customernum sku> 001 fred> > John Davies> jd@professionalideas.com> _____________________________________________> Martin Associates Design Agency> http://www.professionalideas.com> > > From: Alex McCombie
> > Reply-To: (WebCatalog Talk)> > Date: Tue, 08 Aug 2000 14:19:28> > To: (WebCatalog Talk)> > Subject: Re: Replace/Commit not Replacing/Commiting> >> >> > John,> > try this:> > [replace> > db=/full/path/to/database/customernum.txt&eqskudatarq=fred]customernum=[math> > ][lookup> > db=/full/path/to/database/customernum.txt&lookinfield=sku&value=fred&returnf> > ield=customernum¬found=0]+3[/math][/replace]> >> >> > Replace /full/path/to/database/ with the full path to the db. Just curious> > if this helps.> >> > BTW, what exact version are you using?> >> > Alex> >> >> >> >> Thanks, but same.> >>> >> I am writing [customernum] to the cart, as I reload the page and then check> >> the cart, I can see the number change. So, the data is getting updated in> >> ram by WebCat, but the data does not get updated in the customernum.txt> >> file.> >>> >> (grrrr)> >>> >>> >> John Davies> >> jd@professionalideas.com> >> _____________________________________________> >> Martin Associates Design Agency> >> http://www.professionalideas.com> >>> >>> >>> From: Anup Setty > >>> Reply-To: (WebCatalog Talk)> >>> Date: Tue, 8 Aug 2000 13:38:07> >>> To: (WebCatalog Talk)> >>> Subject: Re: Replace/Commit not Replacing/Commiting> >>>> >>> Try this,> >>> [replace db=customernum.txt&eqskudatarq=fred]customernum=[math][lookup> >>> db=customernum.txt&lookinfield=sku&value=fred&returnfield=customernum¬fou> >>> nd=0]+3[/math][/replace]> >>>> >>> Also make sure you can append to the database, with a simple append> >>> statement.> >>>> >>> =0=0=0=0=0=0=0=0=0=0=0=0=0=> >>> Anup Setty> >>>> >>> Vertical Net> >>> Email: asetty@vertical.net> >>> URL : http://www.vertical.net> >>>> >>> =0=0=0=0=0=0=0=0=0=0=0=0=0=> >>>> >>>>> From: Jason Sofonia > >>>>> Reply-To: (WebCatalog Talk)> >>>>> Date: Tue, 08 Aug 2000 12:59:21> >>>>> To: (WebCatalog Talk)> >>>>> Subject: Re: Replace/Commit not Replacing/Commiting> >>>>>> >>>>> [math show=f]mycustomernum=[lookup> >>>>>> >>> db=customernum.txt&lookinfield=sku&value=fred&returnfield=customernum¬fou> >>>>> nd=0]+3[/math]> >>>>>> >>>>> [replace> >>>>>> >>> db=customernum.txt&eqskudatarq=fred]customernum=[url][mycustomernum][/url][/> >>>>> replace]> >>>>> >>>>> >>>> -------------------------------------------------------------> >>>> 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/> >>>> >>>> >>> -------------------------------------------------------------> >>> 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/> >>> >>> >> -------------------------------------------------------------> >> 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/> >> > Alex J McCombie New World Media> > Director of Interactive Services Drawer 607> > 800/724.8973 Fair Haven, NY 13064> > Alex@NewWorldMedia.com http://OurClients.com> >> > Interface Designer WebDNA Programmer Database Designer> >> >> >> > -------------------------------------------------------------> > 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/> > -------------------------------------------------------------> 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/-------------------------------------------------------------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:
Have you removed the active part of the replace, so you can see whetheryou actually have the correct information there. For example:[raw][replace[/raw]db=customernum.txt&eqskudata=fred]customernum=[mycustomernum][raw][/replace][/raw]In general, the [url] context is not going to every be useful for mathvariables. You could try [math]mycustomernum[/math] just for the funof it, too.John PeacockJohn Davies wrote:> > Nope.> > MacOS9.04> WebTen 3.0> WebCat 4.02b4 (Plugin)> 192 Mb Ram> 1Mb VMem> 193 Mb Total Ram> > Here is the code as I have it now.> > [orderfile cart=[cart]]> [showif [header10]=new]> [showif [subtotal]=0]> > [setheader cart=[cart]]header11=FA[mydate][lookup> db=customernum.txt&lookinfield=sku&value=fred&returnfield=customernum¬fou> nd=0][/setheader]> > > > [replace> db=customernum.txt&eqskudata=fred]customernum=[url][mycustomernum][/url][/re> place]> > [/showif]> [/showif]> [/orderfile]> > Here is the customernum.txt file:> > customernum sku> 001 fred> > John Davies> jd@professionalideas.com> _____________________________________________> Martin Associates Design Agency> http://www.professionalideas.com> > > From: Alex McCombie > > Reply-To: (WebCatalog Talk)> > Date: Tue, 08 Aug 2000 14:19:28> > To: (WebCatalog Talk)> > Subject: Re: Replace/Commit not Replacing/Commiting> >> >> > John,> > try this:> > [replace> > db=/full/path/to/database/customernum.txt&eqskudatarq=fred]customernum=[math> > ][lookup> > db=/full/path/to/database/customernum.txt&lookinfield=sku&value=fred&returnf> > ield=customernum¬found=0]+3[/math][/replace]> >> >> > Replace /full/path/to/database/ with the full path to the db. Just curious> > if this helps.> >> > BTW, what exact version are you using?> >> > Alex> >> >> >> >> Thanks, but same.> >>> >> I am writing [customernum] to the cart, as I reload the page and then check> >> the cart, I can see the number change. So, the data is getting updated in> >> ram by WebCat, but the data does not get updated in the customernum.txt> >> file.> >>> >> (grrrr)> >>> >>> >> John Davies> >> jd@professionalideas.com> >> _____________________________________________> >> Martin Associates Design Agency> >> http://www.professionalideas.com> >>> >>> >>> From: Anup Setty > >>> Reply-To: (WebCatalog Talk)> >>> Date: Tue, 8 Aug 2000 13:38:07> >>> To: (WebCatalog Talk)> >>> Subject: Re: Replace/Commit not Replacing/Commiting> >>>> >>> Try this,> >>> [replace db=customernum.txt&eqskudatarq=fred]customernum=[math][lookup> >>> db=customernum.txt&lookinfield=sku&value=fred&returnfield=customernum¬fou> >>> nd=0]+3[/math][/replace]> >>>> >>> Also make sure you can append to the database, with a simple append> >>> statement.> >>>> >>> =0=0=0=0=0=0=0=0=0=0=0=0=0=> >>> Anup Setty> >>>> >>> Vertical Net> >>> Email: asetty@vertical.net> >>> URL : http://www.vertical.net> >>>> >>> =0=0=0=0=0=0=0=0=0=0=0=0=0=> >>>> >>>>> From: Jason Sofonia > >>>>> Reply-To: (WebCatalog Talk)> >>>>> Date: Tue, 08 Aug 2000 12:59:21> >>>>> To: (WebCatalog Talk)> >>>>> Subject: Re: Replace/Commit not Replacing/Commiting> >>>>>> >>>>> [math show=f]mycustomernum=[lookup> >>>>>> >>> db=customernum.txt&lookinfield=sku&value=fred&returnfield=customernum¬fou> >>>>> nd=0]+3[/math]> >>>>>> >>>>> [replace> >>>>>> >>> db=customernum.txt&eqskudatarq=fred]customernum=[url][mycustomernum][/url][/> >>>>> replace]> >>>>> >>>>> >>>> -------------------------------------------------------------> >>>> 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/> >>>> >>>> >>> -------------------------------------------------------------> >>> 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/> >>> >>> >> -------------------------------------------------------------> >> 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/> >> > Alex J McCombie New World Media> > Director of Interactive Services Drawer 607> > 800/724.8973 Fair Haven, NY 13064> > Alex@NewWorldMedia.com http://OurClients.com> >> > Interface Designer WebDNA Programmer Database Designer> >> >> >> > -------------------------------------------------------------> > 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/> > -------------------------------------------------------------> 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/-------------------------------------------------------------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 Peacock
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:
Nested tags count question (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Searching by Date Comparison (2000)
OT: Need some feedback, please. (2003)
browser info.txt and SSL (1997)
Re:2nd WebCatalog2 Feature Request (1996)
[LOOKUP] (1997)
sendmail and accented characters (1998)
FoundItems Question (1998)
Constructive criticism (2000)
Relevancy Rating (1998)
shipcost vs shiptotal (1998)
Multiple catalog databases and showcart (1997)
Frames and WebCat (1997)
Suffix or Line? (1999)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Cookie based session management Q (2002)
WebCat2 Append problem (B14Macacgi) (1997)
emailer on Windows Beta 18 (1997)
Needed, Freelance Web Developer (2007)