Re: Moving records
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 28600
interpreted = N
texte = >Is there any easier way to move a record in databaseA.db to>databaseB.db without,>1) Doing a search>2) Doing an append>3) Doing a deleteNo, that's how you have to do it.>This is painful as I have to specify the fieldnames, as there is no>way to link [ListFields DatabaseName] to a founditems context.Yes there is! Assuming the field names in both db's are the same, and if you are moving only one record, you can do the following:[search db=thisDB&...&max=1][founditems][append db=otherDB][listfields thisDB(or otherDB)][fieldname]=[interpret][[fieldname]][/interpret]&[/listfields][/append][delete db=thisDB&eqskudata=[sku]][/founditems][/search]Just remember, if you need to retrieve more than one record, you must move the delete tag outside the founditems context and use a different technique for the deleting records from thisDB ... :)================================Kenneth Grome, WebDNA Consultant808-737-6499 http://webdna.net================================-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
>Is there any easier way to move a record in databaseA.db to>databaseB.db without,>1) Doing a search>2) Doing an append>3) Doing a deleteNo, that's how you have to do it.>This is painful as I have to specify the fieldnames, as there is no>way to link [ListFields DatabaseName] to a founditems context.Yes there is! Assuming the field names in both db's are the same, and if you are moving only one record, you can do the following:[search db=thisDB&...&max=1][founditems][append db=otherDB][listfields thisDB(or otherDB)][fieldname]=[interpret][[fieldname]][/interpret]&[/listfields][/append][delete db=thisDB&eqskudata=[sku]][/founditems][/search]Just remember, if you need to retrieve more than one record, you must move the delete tag outside the founditems context and use a different technique for the deleting records from thisDB ... :)================================Kenneth Grome, WebDNA Consultant808-737-6499 http://webdna.net================================-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Kenneth Grome
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:
Sorting by date (1997)
exclusive db lock with webcat-3 ? (2000)
Adding Multiple files to a cart at once (1998)
Re:HTTP header line is too long? (1997)
SiteGuard Admin Feature ? (1997)
UPS online tools assuming one package per item no matterthe quantity. (2003)
WebCatalog as another user on mac osx (2001)
TinyStore Question (1999)
Email within tmpl ? (1997)
Line Endings (2003)
Out of the woodwork (2007)
SERIAL NUMBER PROBLEM *AGAIN*!!! (1998)
WebCat2.0 [format thousands .0f] no go (1997)
Chat (2000)
Problems w/ heavy use of cart header fields? (1998)
Processing all html files through WebCat or Typhoon (1998)
protect tag not working (1998)
2.0 Info (1997)
WebCat2b12 - New features for 1.6 users ... (1997)
[WebDNA] WebDNA for Windows Newbie Questions (2008)