Re: [WebDNA] copy some database fields into a new database

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112686
interpreted = N
texte = 269 ------=_Part_5012732_55736898.1458870481126 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have a feeling I over thought the whole thing.Thanks for setting me strai= ght.... =20 On Thursday, March 24, 2016 5:29 PM, Brian Burton w= rote: =20 Rich,=20 In your example, you don=E2=80=99t need to use a loop at all. The [foundite= ms] tag set is doing the looping for you, one iteration per record retrieve= d. You do however need to add all the fields you want to append in the append = tag. example:=20 [search db=3Dproducts.db&eqVisibledatarq=3DT&asSKUsort=3D1] [founditems] [append db=3Dproducts_new.db&autonumber=3DID]sku=3D[sku]&color=3D[color]&si= ze=3D[size]&price=3D[price]&description=3D[url][description][/url][/append] [/founditems] [/search] -Brian B. Burton --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us ------=_Part_5012732_55736898.1458870481126 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have a f= eeling I over thought the whole thing.
Thanks for setting me straight....


=
On Thursday, Mar= ch 24, 2016 5:29 PM, Brian Burton <brian@burtons.com> wrote:


Rich,

In your exa= mple, you don=E2=80=99t need to use a loop at all. The [founditems] tag set= is doing the looping for you, one iteration per record retrieved.
You do however need to add all the fields you want to append in t= he append tag.
example:

[search db=3Dproducts.db&eqVisibledatarq=3DT&asSKUsort=3D1][founditems]
[append db=3Dproducts_new.db= &autonumber=3DID]sku=3D[sku]&color=3D[color]&size=3D[size]&= price=3D[price]&description=3D[url][description][/url][/append]
[/founditems]
[/search]


-Brian B. Burton


-------------------------------------------= --------------
This message is sent to you because you ar= e subscribed to
the mailing list <talk@webdna.= us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us ------=_Part_5012732_55736898.1458870481126-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] copy some database fields into a new database (Rich Kwas 2016)
  2. Re: [WebDNA] copy some database fields into a new database (Brian Burton 2016)
  3. Re: [WebDNA] copy some database fields into a new database (Rich Kwas 2016)
  4. Re: [WebDNA] copy some database fields into a new database (Brian Burton 2016)
  5. [WebDNA] copy some database fields into a new database (Rich Kwas 2016)
269 ------=_Part_5012732_55736898.1458870481126 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have a feeling I over thought the whole thing.Thanks for setting me strai= ght.... =20 On Thursday, March 24, 2016 5:29 PM, Brian Burton w= rote: =20 Rich,=20 In your example, you don=E2=80=99t need to use a loop at all. The [foundite= ms] tag set is doing the looping for you, one iteration per record retrieve= d. You do however need to add all the fields you want to append in the append = tag. example:=20 [search db=3Dproducts.db&eqVisibledatarq=3DT&asSKUsort=3D1] [founditems] [append db=3Dproducts_new.db&autonumber=3DID]sku=3D[sku]&color=3D[color]&si= ze=3D[size]&price=3D[price]&description=3D[url][description][/url][/append] [/founditems] [/search] -Brian B. Burton --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us ------=_Part_5012732_55736898.1458870481126 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have a f= eeling I over thought the whole thing.
Thanks for setting me straight....


=
On Thursday, Mar= ch 24, 2016 5:29 PM, Brian Burton <brian@burtons.com> wrote:


Rich,

In your exa= mple, you don=E2=80=99t need to use a loop at all. The [founditems] tag set= is doing the looping for you, one iteration per record retrieved.
You do however need to add all the fields you want to append in t= he append tag.
example:

[search db=3Dproducts.db&eqVisibledatarq=3DT&asSKUsort=3D1][founditems]
[append db=3Dproducts_new.db= &autonumber=3DID]sku=3D[sku]&color=3D[color]&size=3D[size]&= price=3D[price]&description=3D[url][description][/url][/append]
[/founditems]
[/search]


-Brian B. Burton


-------------------------------------------= --------------
This message is sent to you because you ar= e subscribed to
the mailing list <talk@webdna.= us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us ------=_Part_5012732_55736898.1458870481126-- . Rich Kwas

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:

Forcing price recalculation in shopping cart (1998) WebCatalog Technical Reference (1997) WebCat2b15MacPlugin - [protect] (1997) question... no field names? (2002) Signal Raised error (1997) [WebDNA] inputed text getting scrambled up in DB (2012) Error: Too many nested [xxx] contexts (1997) Re:What file? (1997) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997) Using [Include] Context (1999) Resetting a Formvariable (2000) Latest WebCat release version (1998) [isfolder] and [filename] (1997) Three new problems, maybe a fourth (1997) international time (1997) necessary? (2000) WebCat2b12plugin - [search] is broken ... not! (1997) Detecting/limiting connections in the developer edition ... (2004) Why did this copyfile stop working? (2004) NTbeta18 corrupted? (1997)