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:

Webstar 1.3.1 PPC (1997) Discounts (1998) [!] not working? (1999) Purchased cart being overwritten - still !?? (1997) Show new (2003) Speed Admin? (Was FlushDatabases) (1997) NTbeta18 corrupted? (1997) WCS Newbie question (1997) WebCat B13 Mac CGI -- Frames question (1997) Running 2 two WebCatalog.acgi's (1996) select multiple 2 more cents (1997) Requiring that certain fields be completed (1997) [WebDNA] Is a '.webdna' suffix better? (2008) Caching [include] files ... (1997) WebCatalog2 for NT Beta Request (1997) Fwd: checkboxes (2000) Date/Time format problems (1997) Speaking of () Emailer not working (1998) WebCat2b12--[searchstring] bug (1997) Nesting format tags (1997)