Re: Editing only the price field in the database
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 21724
interpreted = N
texte = PCS Technical Support wrote:> >Basically, I would like to be able to export everything from our> >off-line database, create a temporary online database with the> >exported info, be able to compare the part numbers in the temporary> >database with the part numbers in the Catalog.db and when it finds> >matching part numbers, replace the price field in the Catalog.db with> >the price in the temporary database. Is it possible to do this using> >WebCat?>> Yes, you can certainly write some 'merge' WebDNA that searches thru an> update database and does a [replace] on your main database with the new> price information. It can take some time for large databases, though.>> But I'd recommend a nice little hybrid instead: keep the price information> *out* of your main Catalog.db, and instead keep a separate SKU/price> database which contains just those two fields. That way you can easily> export just those 2 fields from your offline database, and whenever you> need to find the price of something in your templates, just do a quick> [lookup] in the price database to see its current value. You can even> modify your Formulas.db to automatically pull prices from this alternate> database.Thanks. I like the idea of having a separate db for sku/price. I may decideto go that route.-- --------------------------------------------------------Mike EberlyAuto Krafters, Inc.P.O. Box 8522 S. Main StreetBroadway, VA 228151-800-288-7346--------------------------------------------------------
Associated Messages, from the most recent to the oldest:
PCS Technical Support wrote:> >Basically, I would like to be able to export everything from our> >off-line database, create a temporary online database with the> >exported info, be able to compare the part numbers in the temporary> >database with the part numbers in the Catalog.db and when it finds> >matching part numbers, replace the price field in the Catalog.db with> >the price in the temporary database. Is it possible to do this using> >WebCat?>> Yes, you can certainly write some 'merge' WebDNA that searches thru an> update database and does a
[replace] on your main database with the new> price information. It can take some time for large databases, though.>> But I'd recommend a nice little hybrid instead: keep the price information> *out* of your main Catalog.db, and instead keep a separate SKU/price> database which contains just those two fields. That way you can easily> export just those 2 fields from your offline database, and whenever you> need to find the price of something in your templates, just do a quick>
[lookup] in the price database to see its current value. You can even> modify your
formulas.db to automatically pull prices from this alternate> database.Thanks. I like the idea of having a separate db for sku/price. I may decideto go that route.-- --------------------------------------------------------Mike EberlyAuto Krafters, Inc.P.O. Box 8522 S. Main StreetBroadway, VA 228151-800-288-7346--------------------------------------------------------
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:
PCS Frames (1997)
Non WebDNA forms and timed popups... (2002)
Truncated Sendmail (1998)
PIXO support (1997)
WebDNA on FreeVSD? (2002)
Hiding the URL(was Cart ID Duplication) (2001)
Semi OT: Internet Sales Tax (2003)
Summary layout (1997)
Languages (1997)
[WebDNA] 2nd pair of eyes on redirect please (2011)
all records returned. (1997)
Error Lob.db records error message not name (1997)
company names not begin with a letter (2005)
Error: Too many nested [xxx] contexts (1997)
PIXO Support (1997)
How to verify email address (1997)
Repharesed: Web Site Stats (2002)
Security (1998)
New York City sales tax database needed (1997)
Me know logical no need (2002)