Re: REPLACE and/or APPEND
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 41741
interpreted = N
texte = You need to have: & append=T[REPLACEdb=sessions.db&eqsessionidDATAreq=[sessionid]&append=T]info=[info][/REPLACE]Get rid of every thing else-----Original Message-----From: Chris List Recipient [mailto:chris-list@surfcity.com]Sent: Friday, July 19, 2002 3:24 PMTo: WebDNA-Talk@talk.smithmicro.comSubject: REPLACE and/or APPENDI want to add a record to a database (based on a session id) if it does notalready exist, otherwise I just want to update it. It seems I am going thelong way about this. Can't I get REPLACE to do it in one line of WebDNAcode? Here is my sad solution:[TEXT]found=[LOOKUPdb=sessions.db&value=[sessionid]&lookinfield=sessionid&returnfield=sessionid¬found=][/TEXT][SHOWIF [found]!] [REPLACEdb=sessions.db&eqsessionidDATAreq=[sessionid]]info=[info][/REPLACE][/SHOWIF][HIDEIF [found]!] [APPEND db=sessions.db]sessionid=[sessionid]&info=[info][/APPEND][/HIDEIF]Thanks-------------------------------------------------------------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 toWeb Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
You need to have: & append=T[REPLACEdb=sessions.db&eqsessionidDATAreq=[sessionid]&append=T]info=[info][/REPLACE]Get rid of every thing else-----Original Message-----From: Chris List Recipient [mailto:chris-list@surfcity.com]Sent: Friday, July 19, 2002 3:24 PMTo: WebDNA-Talk@talk.smithmicro.comSubject: REPLACE and/or APPENDI want to add a record to a database (based on a session id) if it does notalready exist, otherwise I just want to update it. It seems I am going thelong way about this. Can't I get REPLACE to do it in one line of WebDNAcode? Here is my sad solution:[text]found=[LOOKUPdb=sessions.db&value=[sessionid]&lookinfield=sessionid&returnfield=sessionid¬found=][/TEXT][SHOWIF [found]!] [REPLACEdb=sessions.db&eqsessionidDATAreq=[sessionid]]info=[info][/REPLACE][/SHOWIF][HIDEIF [found]!] [APPEND db=sessions.db]sessionid=[sessionid]&info=[info][/APPEND][/HIDEIF]Thanks-------------------------------------------------------------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 toWeb Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Pedro Rivera
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:
possible, WebCat2.0 and checkboxes-restated (1997)
docs for WebCatalog2 (1997)
UPS Shipping (1999)
ShoppingCart removal (2002)
form data submission gets truncated (1997)
Re[2]: Enhancement Request for WebCatalog-NT (1996)
Summing fields (1997)
5.1: Can't enter serial number (2004)
WebCatalog Work (2001)
Resume Catalog ? (1997)
Formulas.db + Users.db (1997)
Postdata expired from cache (2004)
MacAuthorize and WebMerchant (1997)
Problem using # in my field names ... (1998)
Can you do this??? and other stuff (1997)
How to include weather (2000)
[WebDNA] An unknown error occured // Deadlock avoided (2011)
(1997)
shipping & multiple comparisons? (2000)
[ShowNext] (1997)