Re: problem 'building' field names

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34552
interpreted = N
texte = oops, in the code I posted below, I had tried using the [Interpret] tag, normally it isn't in there. But I am grasping right now.ThanksOn Wednesday, July 12, 2000, Dale wrote: >Hello, > >On my form results page I am trying to build the fields names >to append to my database. I do this as I am trying to append a >single record for each of 7 different sets of information from >my form page. > >The form vaiables display fine on the results page, however >when I try to dynamically 'build' the fieldnames (to make the >system automatic), I get he text of the form field names in the >database instead of the value or the form variables. > >In the code below, I have the append commented out while I try to figure this out. >If I enter the actual form field name e.g. [usd/jpy_Q3] then I >properly get the value for this orm variable. However, when >building the same name, I only get the text in the database, >e.g. usd/jpy_Q3 instead of the value of this field. > > >Here is the code. > >[text show=t]period1=[LOOKUP >db=/dbs/period.db&value=1&lookInField=period_id&returnField=periodValue¬Found=error][/text] >[text show=t]period2=[LOOKUP >db=/dbs/period.db&value=2&lookInField=period_id&returnField=periodValue¬Found=error][/text] > >

[search db=/dbs/pollnames.db&gePoll_IDData=1&Poll_IDsmm=t&Poll_IDsort=1&poll_idsdir=as] >numfound=[numfound]
>[founditems] > >-- these lines for testing / debugging only >[poll_id] - [pollname]
>[pollname]_[period1]
>[pollname]_[period2]
>--- end of debugging > >[!][append >db=/dbs/votes.db]poll_id=[poll_id]&vote_id=[cart]-[index]&value1=[Interpret][pollname]_[period1][/Interpret]&value2=[pollname]_[period2]&start_date=[start]&end=[math][expire][/math]&vote_date=[math][date][/math]&ip=[ipaddress]&business=[business] >[/append][/!] > >[/founditems] >[/search] > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://search.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: problem 'building' field names (Charles Kline 2000)
  2. Re: problem 'building' field names (Dale 2000)
  3. Re: problem 'building' field names (Dale 2000)
  4. Re: problem 'building' field names (Charles Kline 2000)
  5. Re: problem 'building' field names (Dale 2000)
  6. problem 'building' field names (Dale 2000)
oops, in the code I posted below, I had tried using the [interpret] tag, normally it isn't in there. But I am grasping right now.ThanksOn Wednesday, July 12, 2000, Dale wrote: >Hello, > >On my form results page I am trying to build the fields names >to append to my database. I do this as I am trying to append a >single record for each of 7 different sets of information from >my form page. > >The form vaiables display fine on the results page, however >when I try to dynamically 'build' the fieldnames (to make the >system automatic), I get he text of the form field names in the >database instead of the value or the form variables. > >In the code below, I have the append commented out while I try to figure this out. >If I enter the actual form field name e.g. [usd/jpy_Q3] then I >properly get the value for this orm variable. However, when >building the same name, I only get the text in the database, >e.g. usd/jpy_Q3 instead of the value of this field. > > >Here is the code. > >[text show=t]period1=[LOOKUP >db=/dbs/period.db&value=1&lookInField=period_id&returnField=periodValue¬Found=error][/text] >[text show=t]period2=[LOOKUP >db=/dbs/period.db&value=2&lookInField=period_id&returnField=periodValue¬Found=error][/text] > >

[search db=/dbs/pollnames.db&gePoll_IDData=1&Poll_IDsmm=t&Poll_IDsort=1&poll_idsdir=as] >numfound=[numfound]
>[founditems] > >-- these lines for testing / debugging only >[poll_id] - [pollname]
>[pollname]_[period1]
>[pollname]_[period2]
>--- end of debugging > >[!][append >db=/dbs/votes.db]poll_id=[poll_id]&vote_id=[cart]-[index]&value1=[interpret][pollname]_[period1][/Interpret]&value2=[pollname]_[period2]&start_date=[start]&end=[math][expire][/math]&vote_date=[math][date][/math]&ip=[ipaddress]&business=[business] >[/append][/!] > >[/founditems] >[/search] > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://search.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Dale

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:

Sharing with you my Online help system (2006) can you reassign loop index? (1998) OK, here goes... (1997) Emailer setup (1997) WebCat2.0 [format thousands .0f] no go (1997) Multiple catalog databases and showcart (1997) PR: WebCatalog Affiliates Program Announced -- Share the (2000) MacActivity and PCS (1997) [FileInfo] (1998) [OT] Disable/enable field (2003) WebCat2: Formulas.db question (1997) Redirect function (was Bug fixes for next WebDNA release) (2005) Database access (2003) Silly Question (2003) Logical and or in [hideif] (1997) OT: Anyone using WebCrossing and can answer a question? (2000) totals (1997) [WebDNA] reCAPTCHA and WebDNA (2010) WebCat2 beta 11 - new prefs ... (1997) Exclamation point (1997)