Re: Updating Prices in Online Database
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23343
interpreted = N
texte = Thanks,I will give this a try.Gil Poulsen wrote:> Well, yes, it is completely replacing existing records with new ones. I> misunderstood your question. In your case you would want to use the> replace context instead and just specify the key field (in my example,> it is the sku) and the price field. So assuming that both databases have> fields called [price] and [sku], it would look more like this:>> [search db=newrecords.db&neskudatarq=[blank]&max=8000]>> [FoundItems]>> [Replace db=yourdatabase.db&eqskudatarq=[sku]]price=[price][/Replace]>> [/FoundItems]>>
[numfound] records have been updated per your request.>> [/search]>> The other fields in the database should remain as they are; at least> they do for me, but if you read the docs it says they will be set to> blank, so maybe PCS can clarify this for us.>
Associated Messages, from the most recent to the oldest:
Thanks,I will give this a try.Gil Poulsen wrote:> Well, yes, it is completely replacing existing records with new ones. I> misunderstood your question. In your case you would want to use the> replace context instead and just specify the key field (in my example,> it is the sku) and the price field. So assuming that both databases have> fields called [price] and [sku], it would look more like this:>> [search db=newrecords.db&neskudatarq=[blank]&max=8000]>>
[founditems]>> [Replace db=yourdatabase.db&eqskudatarq=[sku]]price=[price][/Replace]>> [/FoundItems]>>
[numfound] records have been updated per your request.>> [/search]>> The other fields in the database should remain as they are; at least> they do for me, but if you read the docs it says they will be set to> blank, so maybe PCS can clarify this for us.>
Mike Eberly
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:
can WC render sites out? (1997)
Banners (1997)
NT version and O'reily's WebSite (1997)
Re:Emailer and encryption (1997)
PCS Emailer's role ? (1997)
MacFinder -- a new WebDNA web site (1998)
Netscape 3.01 can't see db in form (was problems problemsproblems) (1997)
WC1.6 to WC2 date formatting (1997)
webcat- multiple selection in input field (1997)
Max Record length restated as maybe bug (1997)
WebCatalog on Solaris? (2000)
can WC render sites out? (1997)
Calendar (1997)
WebCat for Unix?? (1997)
Sum of [founditems] ? (2004)
Bug Report, maybe (1997)
emailer on Windows Beta 18 (1997)
Problems appending to database (1997)
WCS Newbie question (1997)
RE: Can't get appendfile to work (1997)