Re: [WebDNA] [thisautonumber] and [lastautonumber]

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106593
interpreted = N
texte = This is a multi-part message in MIME format.--------------040900000309080102050509Content-Type: text/plain; charset=ISO-8859-1; format=flowedContent-Transfer-Encoding: 7bitThanks Brian,I tried both and [thisautonumber] was what I was looking for.Brian Fries wrote:> The answers provided were close, but not quite right....>> [thisautonumber] gives you access to the autonumber value that is > currently being added, from inside the [append] or [replace] context.>> [lastautonumber] gives you access to the autonumber value that was > used the previous time that autonumber was invoked, after leaving the > [append] or [replace] content.>>> As a simple demonstration, run this code:>> [table name=myTable Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [thisautonumber] and [lastautonumber] (Steve Raslevich -Northern Sound 2011)
  2. Re: [WebDNA] [thisautonumber] and [lastautonumber] (Brian Fries 2011)
  3. Re: [WebDNA] [thisautonumber] and [lastautonumber] (Steve Raslevich - Northern Sound 2011)
  4. Re: [WebDNA] [thisautonumber] and [lastautonumber] (Aaron Michael Kaczmarek 2011)
  5. [WebDNA] [thisautonumber] and [lastautonumber] (Steve Raslevich -Northern Sound 2011)
This is a multi-part message in MIME format.--------------040900000309080102050509Content-Type: text/plain; charset=ISO-8859-1; format=flowedContent-Transfer-Encoding: 7bitThanks Brian,I tried both and [thisautonumber] was what I was looking for.Brian Fries wrote:> The answers provided were close, but not quite right....>> [thisautonumber] gives you access to the autonumber value that is > currently being added, from inside the [append] or [replace] context.>> [lastautonumber] gives you access to the autonumber value that was > used the previous time that autonumber was invoked, after leaving the > [append] or [replace] content.>>> As a simple demonstration, run this code:>> [table name=myTable Steve Raslevich -Northern Sound

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:

Emailer help needed (1998) [WebDNA] OLD list archives? (2010) Suggestions (1998) japanese characters (1997) Sandbox DB permissions (2005) Using WC for Bulk Emailings (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Error Msg (1997) Beginning Documentation (2002) Using [random] (1999) Post Test (2008) Running 2 two WebCatalog.acgi's (1996) [OT] Xserve (2002) flushdatabases (1997) Problem with version 4 browsers (1998) [WebDNA] Debian Lenny, Lighttpd and WebDNA FastCGI ... (2010) Problems getting parameters passed into email. (1997) select menus & database design (1998) Nested tags count question (1997) Stripping attachments in shared pop (2005)