Re: Multiple Replaces

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15803
interpreted = N
texte = Hi all,On 12/16 John Hill wrote,One of the cool things about our [replace] and [delete] contexts/tags is that they can act on one or multiple records at one time. Since each require search criteria, make sure your search for replace finds all the records by one manufacturer and then reset that one field. Something like the following:[replace db=blah.db&eqmanufacturerdatarq=PCS]onSale=T[/replace]John.==========================================Does this replace the contents of the desired field for only the found records or for that field for all the records in the database?What I had hoped to be able to do is something like this.Find all the CDs for which Ella Fitzgerlad is the Artist. i.e. Artis is the search field and Ella Fitzgerald is the search criteria.If the search found 12 records, but I only wanted to put two of them on sale, I want to change the onSale field to T in the two records displayed in the 12 found records. I then want to hit the submit button and replace the onSale value in those two records with T so when I execute a search for on sale items they will be found.Hope that makes it clearer.Jerry Nielsen - Rose Arbour Associated Messages, from the most recent to the oldest:

    
  1. Re: Multiple Replaces (Kenneth Grome 1997)
  2. Re: Multiple Replaces (Jerry Nielsen 1997)
  3. Re: Multiple Replaces? (John Hill 1997)
  4. Multiple Replaces? (Jerry Nielsen 1997)
Hi all,On 12/16 John Hill wrote,One of the cool things about our [replace] and [delete] contexts/tags is that they can act on one or multiple records at one time. Since each require search criteria, make sure your search for replace finds all the records by one manufacturer and then reset that one field. Something like the following:[replace db=blah.db&eqmanufacturerdatarq=PCS]onSale=T[/replace]John.==========================================Does this replace the contents of the desired field for only the found records or for that field for all the records in the database?What I had hoped to be able to do is something like this.Find all the CDs for which Ella Fitzgerlad is the Artist. i.e. Artis is the search field and Ella Fitzgerald is the search criteria.If the search found 12 records, but I only wanted to put two of them on sale, I want to change the onSale field to T in the two records displayed in the 12 found records. I then want to hit the submit button and replace the onSale value in those two records with T so when I execute a search for on sale items they will be found.Hope that makes it clearer.Jerry Nielsen - Rose Arbour Jerry Nielsen

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:

strange problem listfiles and movefile (2000) More on the email templates (1997) Interfacing WebMerchant to www.fedex.com (1997) DNA Bandwidth Monitor (2005) WebCatalog for Postcards ? (1997) [OT] Adopting out a WebDNA website (2003) how to use WebCat w. SSL & CyberCash (1998) wierd [cart] action! (1997) Shipping.db (1998) Non-Cart Files in Shopping Cart Folder (1997) Include Troubles (1998) A helpful tip to avoid pulling an Aaron OT (2000) Can't save email prefs (2003) Harvesting invalid email addresses from bounced emails??? (2000) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Bug Report, maybe (1997) [group] ? (1997) Re:E-mailer application times out (1998) Re:HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997) WebCat NT v. Mac (1997)