Re: listing [text] variables?

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22215
interpreted = N
texte = >>Let's say I set a whole bunch of text variables at the top of a page. Is >>there any webdna mechanism I can use further down that page to list the >>values of all those text variables? > >No, although it's not a bad idea for a future feature. We started out >assuming that if you were the one creating the variables, then you'd >already know which were created, but I can see how it could be useful.Yes, I agree, it would be useful, something like [formvariables] but for text variables instead.I've come up with a cool technique for assigning all the field values from a specific db record to [text] variables at the top of the page. I perform a search that retrieves a single record, then I assign each field value to a [text] variable of the same name by using the [listfields] context.This allows me to write showif's in a consistent manner in *all* cases (instead of using [showif [dbField]=] for db fields and [showif [tag]=[raw][tag][/raw]] for variable tags, which has always been a bothersome inconsistency to me) ...... and it also makes every field value in the retrieved db record available to the rest of the page *without* using any additional lookups or searches -- and without nesting everything inside a search context. Fewer nested contexts equals greater overall speed, right?So now all I have to use is [variableName] tags on the rest of the page, provided the page is referring to the values retrieved from a specific db record -- which is nearly always the case when using an administrative interface designed to provide access to a specific record or group of records ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: listing [text] variables? (Kenneth Grome 1999)
  2. Re: listing [text] variables? (PCS Technical Support 1999)
  3. listing [text] variables? (Kenneth Grome 1999)
>>Let's say I set a whole bunch of text variables at the top of a page. Is >>there any webdna mechanism I can use further down that page to list the >>values of all those text variables? > >No, although it's not a bad idea for a future feature. We started out >assuming that if you were the one creating the variables, then you'd >already know which were created, but I can see how it could be useful.Yes, I agree, it would be useful, something like [formvariables] but for text variables instead.I've come up with a cool technique for assigning all the field values from a specific db record to [text] variables at the top of the page. I perform a search that retrieves a single record, then I assign each field value to a [text] variable of the same name by using the [listfields] context.This allows me to write showif's in a consistent manner in *all* cases (instead of using [showif [dbField]=] for db fields and [showif [tag]=[raw][tag][/raw]] for variable tags, which has always been a bothersome inconsistency to me) ...... and it also makes every field value in the retrieved db record available to the rest of the page *without* using any additional lookups or searches -- and without nesting everything inside a search context. Fewer nested contexts equals greater overall speed, right?So now all I have to use is [variableName] tags on the rest of the page, provided the page is referring to the values retrieved from a specific db record -- which is nearly always the case when using an administrative interface designed to provide access to a specific record or group of records ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net 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:

shownext example (2001) Limitations on fields? Server is crashing (1997) Running _every_ page through WebCat ? (1997) macosx 1 process, linux N processes, macosx chokes under load (2001) SetHeader (1997) Refreshing document (2000) WC TableGrinder (1997) Categories and Sub-categories (2003) PCS search results page (1998) http://www.smithmicro.com/WebDNAReference/ current? (2000) shortening the cart (1998) [isfile] ? (1997) Searching Multiple DBs (1997) WebCat2 as a chat server? (1997) Locking up with WebCatalog... (1997) service stop and restart (1997) Banners (1997) Lineitems not showing up in ThankYou page (2006) I give up!! (1997) How fast is your server? (2002)