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:

Email Set-Up? (1997) NT Setup (1998) How to Sort Summ data ? (1997) [WebDNA] [OT] WebDNA Wiki - need grammar check / (2009) text variables... weigh much? (2004) Smith Micro - no competition (2000) Friday night shopping site joke (1997) Sku numbers (1997) Links inside of Text Areas (2000) Problems with [Math] (1998) Store Builder, technical infos (1998) Re:Dumb Question about Docs (1997) username/password dialogue (2001) Formatting ModDate (2000) WC2b15 File Corruption (1997) Credit card arrangement (2005) GuestBook example (1997) [append] vs. [appendfile] delta + question? (1997) 404s - Apache vs. WebDNA (2008) Nested tags count question (1997)