Re: Resolving variables into field names

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21978
interpreted = N
texte = You probably need to wrap [startdate] inside the [interpret] context and an outer set of braces, like this:[search db=prices.db&eqItemdatarq=A] [founditems] [interpret][[startdate]][/interpret] [/founditems][/search]-Dave At 1:57 AM 12/20/98, Marty Schmid wrote: >How do you resolve a variable into a field name in order to display the >value of that field from within a [founditems] loop? I have a search that >looks like this: > >[search db=prices.db&eqItemdatarq=A] >[founditems] >[startdate] >[/founditems][/search] > >Now [startdate] is a variable with an assigned value of 729909 which is the >name of the field which contains the value I wish to display. Currently my >result is simply 729909 instead of the value that is contained in the field >named 729909. >The prices database looks like: >Item 729909 729910 729911... >A 10 12 17 >B 14 17 18 > >Any ideas are appreciated. >Thanks >Marty Schmid o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Associated Messages, from the most recent to the oldest:

    
  1. Re: Resolving variables into field names (Carlos Machado 1998)
  2. Re: Resolving variables into field names-resolved! (Marty Schmid 1998)
  3. Re: Resolving variables into field names (Dave MacLeay 1998)
  4. Resolving variables into field names (Marty Schmid 1998)
You probably need to wrap [startdate] inside the [interpret] context and an outer set of braces, like this:[search db=prices.db&eqItemdatarq=A] [founditems] [interpret][[startdate]][/interpret] [/founditems][/search]-Dave At 1:57 AM 12/20/98, Marty Schmid wrote: >How do you resolve a variable into a field name in order to display the >value of that field from within a [founditems] loop? I have a search that >looks like this: > >[search db=prices.db&eqItemdatarq=A] >[founditems] >[startdate] >[/founditems][/search] > >Now [startdate] is a variable with an assigned value of 729909 which is the >name of the field which contains the value I wish to display. Currently my >result is simply 729909 instead of the value that is contained in the field >named 729909. >The prices database looks like: >Item 729909 729910 729911... >A 10 12 17 >B 14 17 18 > >Any ideas are appreciated. >Thanks >Marty Schmid o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Dave MacLeay

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:

all records returned. (1997) Putting [cart] into a database (2003) WebCat2.0 [format thousands .0f] no go (1997) problem (1998) Virtual hosting and webcatNT (1997) WSDL Wizard (2003) Not really WebCat (1997) Order not created error (1997) Webmerchant/Cybercash (2000) Search Question (1998) Just made store and move file from webcatalog......... (2000) Sandboxes (2004) Major Security Hole IIS NT (1998) Summing fields (1997) Multiple serial numbers (1997) Ordering Fraction CORRECTION (2000) # fields limited? (1997) [WebDNA] Bug in [thisurlplusget] on v7 (2011) WC2.0 Memory Requirements (1997) A question on sub-categories (1997)