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 Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>>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 Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://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:
WebCatb15 Mac CGI -- [purchase] (1997)
showcart is slow (1998)
sort on categories (DBEdit) (2001)
RedHat Linux glibc version 2.1.2 or higher required (2000)
NT considerations (1997)
Shorthand for command args (1998)
WebCat2b12plugin - [search] is broken ... not! (1997)
What changes does $purchase make? (1998)
PIXO support (1997)
WCS Newbie question (1997)
One more try (1997)
RE: Which [index]? (1997)
Summary search -- speed (1997)
Capturing the referring site (1999)
More on the email templates (1997)
Where's Cart Created ? (1997)
WCS Newbie question (1997)
WebDNA for Dummies (2004)
Bad Cookie / Internet Option / Internet Explorer (2004)
WebCat2.0 [format thousands .0f] no go (1997)