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 [REPLACE db=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 PM To: WebDNA-Talk@talk.smithmicro.com Subject: REPLACE and/or APPEND I want to add a record to a database (based on a session id) if it does not already exist, otherwise I just want to update it. It seems I am going the long way about this. Can't I get REPLACE to do it in one line of WebDNA code? Here is my sad solution:[TEXT]found=[LOOKUP db=sessions.db&value=[sessionid]&lookinfield=sessionid&returnfield=sessionid ¬found=][/TEXT] [SHOWIF [found]!] [REPLACE db=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 to Web 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:

    
  1. Re: REPLACE and/or APPEND (Christer Olsson 2002)
  2. Re: REPLACE and/or APPEND (Jesse Williams-Proudman 2002)
  3. Re: REPLACE and/or APPEND (Gary Krockover 2002)
  4. Re: REPLACE and/or APPEND (Chris List Recipient 2002)
  5. Re: REPLACE and/or APPEND (Pedro Rivera 2002)
  6. Re: REPLACE and/or APPEND (Jesse Williams-Proudman 2002)
  7. REPLACE and/or APPEND (Chris List Recipient 2002)
You need to have: & append=T [REPLACE db=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 PM To: WebDNA-Talk@talk.smithmicro.com Subject: REPLACE and/or APPEND I want to add a record to a database (based on a session id) if it does not already exist, otherwise I just want to update it. It seems I am going the long way about this. Can't I get REPLACE to do it in one line of WebDNA code? Here is my sad solution:[text]found=[LOOKUP db=sessions.db&value=[sessionid]&lookinfield=sessionid&returnfield=sessionid ¬found=][/TEXT] [SHOWIF [found]!] [REPLACE db=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 to Web 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:

Runtime version ... (2003) Webcat 2.0.1 date math bug -> Crash! (1997) blank fields (1999) taxRate is fine but taxTotal isn't (1997) Live hits (2003) Date Range search (1997) Sort Order on a page search (1997) Sorting... stumped. (2006) Help with database strategy (1998) FlushDatabase Suggestion (1998) PCS Frames-Default page is solution! (1997) Field names beginning with Reg.. (2002) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) a * question (2003) select multiple (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) [OT] mozilla / Seamonkey (2007) Setting up WebCatalog with Retail Pro data (1996) [WebDNA] agree? --> [url] broken inside [redirect], on a (2009) A little syntax help (1997)