Re: [WebDNA] [raw] tag with [interpret] question

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105751
interpreted = N
texte = What is the difference between _Alpha and Alpha for the hideif? Can you introduce a space before the offending hideif and report the values you see on the opposite sides of the equals sign? Bill On Sun, Aug 29, 2010 at 11:31 PM, Suzanne Swift wr= ote: > Thanks for all of your responses.=A0 I shouldn't have posted right before= I > went away for the weekend =3D). > > Here's the whole piece of code.=A0 I think the problem is that the search= is > looking for max=3D3 values.=A0 But in this case, there is only one value > currently in the database....so values 2 and 3 are showing code because > there is nothing to find. > > =A0=A0=A0 [search > db=3Dss_protected/data/mydbase.db&eqClientIDdatarq=3D[_ClientID]&neAlphad= atarq=3D[blank]&neDate_Addeddatarq=3D[blank]&Alphasumm=3DT&deDate_Addedsort= =3D1&max=3D3] > =A0=A0=A0 [text]AddedResourcesFound=3D[numfound][/text] > > =A0=A0=A0 =A0=A0=A0 [founditems] > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [text]_ManSerialNum_[index]=3D[ManSerialNum= ber][/text] > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [text]_Alpha_[index]=3D[Alpha][/text] > =A0=A0=A0 =A0=A0=A0 [/founditems] > =A0=A0=A0 [/search] > > =A0=A0=A0=A0 [hideif [AddedResourcesFound]=3D0] > =A0=A0=A0=A0 [hideif [ClientType]=3DDealership] > =A0=A0=A0=A0 [hideif [noaddedresources]=3D0] > =A0
height:20px; overflow:visible;"> > =A0=A0=A0 > =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 > =A0=A0=A0
Recently Added Resou= rces
height=3D"5">
> =A0
> > =A0
overflow: visible;"> > =A0=A0=A0 > =A0=A0=A0=A0=A0 [showif [AddedResourcesFound]=3D0] > =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 [/showif] [text]index_count=3D0[/text] [loop start=3D1&en= d=3D3] > =A0 [hideif [_Alpha]=3D[interpret][_Alpha_[index]][/interpret]] > =A0=A0=A0=A0=A0 =A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 [/hideif] > =A0=A0=A0=A0=A0 [/loop] > =A0=A0=A0
No resources were found to be rec= ently added.
> [text]_ManSerialNum=3D[interpret][_ManSerialNum_[index]][/interpret][/tex= t] > =A0=A0=A0=A0=A0=A0=A0=A0=A0 [text]_Alpha=3D[interpret][_Alpha_[index]][/i= nterpret][/text] [text > show=3DT]index_count=3D[math][index_count]+1[/math]. > =A0=A0=A0=A0=A0=A0=A0=A0=A0 [/text] class=3D"DefaultLinks_Font">[_Alpha]
> =A0=A0=A0=A0=A0=A0=A0=A0
> =A0
> > > > [/hideif] > [/hideif] > [/hideif] > > > > On Sat, Aug 28, 2010 at 9:22 AM, Govinda > wrote: >> >> If I understand you correctly... >> try this: >> [hideif [url][_Alpha][/url]=3D%5B_Alpha_[index]%5D]CODE[/hideif] >> if that works, then the issue is that [raw] turns off [interpret], meani= ng >> [index] stays literally "[index]".. so you never actually were checking >> against=A0(e.g.) "[_Alpha_2]" (like you were trying to do) >> (in the loop's (e.g.) 2nd iteration). >> ... so we have to 'cheat' like the above. >> (An opening square bracket becomes >> %5B >> inside an [url] wrapper...) >> If that does not work, then say so, and I'll look again. >> -G >> On Aug 28, 2010, at 7:51 AM, Suzanne Swift wrote: >> >> Hi everyone, >> >> This may be a simple fix, but I haven't been able to come up with a >> solution.=A0 Anyone know the answer? >> >> I've created a variable: >> [text]_Alpha=3D[interpret][_ >> Alpha_[index]][/interpret][/text] >> >> which is within a loop: >> [loop start=3D1&end=3D3] >> >> both of the above follow a search: >> >> =A0=A0=A0 [search >> db=3Dmydatabase.db&eqClientIDdatarq=3D[_ClientID]&neAlphadatarq=3D[blank= ]&neDate_Addeddatarq=3D[blank]&Alphasumm=3DT&deDate_Addedsort=3D1&max=3D3] >> =A0=A0=A0 [text]AddedResourcesFound=3D[numfound][/text] >> >> =A0=A0=A0 =A0=A0=A0 [founditems] >> =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [text]_ManSerialNum_[index]=3D[ManSerialNu= mber][/text] >> =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [text]_Alpha_[index]=3D[Alpha][/text] >> =A0=A0=A0 =A0=A0=A0 [/founditems] >> =A0=A0=A0 [/search] >> >> >> In the case I'm trying to solve, [numfound]=3D1. >> >> >> I want to hide a section of my code if the interpreted variable is raw >> (i.e. [_Alpha_2] or [_Alpha_3]). >> >> I've tried the following: >> =A0[hideif [_Alpha]=3D[interpret][_Alpha_[index]][/interpret]]CODE[/hide= if] >> =A0[hideif >> [_Alpha]=3D[raw][interpret][_Alpha_[index]][/interpret][/raw]]CODE[/hide= if] >> =A0 [hideif >> [_Alpha]=3D[interpret][raw][_Alpha_[index]][/raw][/interpret]]CODE[/hide= if] >> =A0 [hideif [_Alpha]=3D[raw][_Alpha_[index]][/raw]]CODE[/hideif] >> >> but none of them work.=A0 I haven't done much coding with [interpret] ta= gs. >> Is there some other way to hide this code? >> >> Thanks, >> Suzanne >> >> ------------ >> Govinda >> govinda.webdnatalk@gmail.com >> >> >> > > Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [raw] tag with [interpret] question (Kenneth Grome 2010)
  2. Re: [WebDNA] [raw] tag with [interpret] question (William DeVaul 2010)
  3. Re: [WebDNA] [raw] tag with [interpret] question (Govinda 2010)
  4. Re: [WebDNA] [raw] tag with [interpret] question (William DeVaul 2010)
  5. Re: [WebDNA] [raw] tag with [interpret] question (Suzanne Swift 2010)
  6. Re: [WebDNA] [raw] tag with [interpret] question (Kenneth Grome 2010)
  7. Re: [WebDNA] [raw] tag with [interpret] question (Govinda 2010)
  8. Re: [WebDNA] [raw] tag with [interpret] question (William DeVaul 2010)
  9. [WebDNA] [raw] tag with [interpret] question (Suzanne Swift 2010)
What is the difference between _Alpha and Alpha for the hideif? Can you introduce a space before the offending hideif and report the values you see on the opposite sides of the equals sign? Bill On Sun, Aug 29, 2010 at 11:31 PM, Suzanne Swift wr= ote: > Thanks for all of your responses.=A0 I shouldn't have posted right before= I > went away for the weekend =3D). > > Here's the whole piece of code.=A0 I think the problem is that the search= is > looking for max=3D3 values.=A0 But in this case, there is only one value > currently in the database....so values 2 and 3 are showing code because > there is nothing to find. > > =A0=A0=A0 [search > db=3Dss_protected/data/mydbase.db&eqClientIDdatarq=3D[_ClientID]&neAlphad= atarq=3D[blank]&neDate_Addeddatarq=3D[blank]&Alphasumm=3DT&deDate_Addedsort= =3D1&max=3D3] > =A0=A0=A0 [text]AddedResourcesFound=3D[numfound][/text] > > =A0=A0=A0 =A0=A0=A0 [founditems] > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [text]_ManSerialNum_[index]=3D[ManSerialNum= ber][/text] > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [text]_Alpha_[index]=3D[Alpha][/text] > =A0=A0=A0 =A0=A0=A0 [/founditems] > =A0=A0=A0 [/search] > > =A0=A0=A0=A0 [hideif [AddedResourcesFound]=3D0] > =A0=A0=A0=A0 [hideif [ClientType]=3DDealership] > =A0=A0=A0=A0 [hideif [noaddedresources]=3D0] > =A0
height:20px; overflow:visible;"> > =A0=A0=A0 > =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 > =A0=A0=A0
Recently Added Resou= rces
height=3D"5">
> =A0
> > =A0
overflow: visible;"> > =A0=A0=A0 > =A0=A0=A0=A0=A0 [showif [AddedResourcesFound]=3D0] > =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 [/showif] [text]index_count=3D0[/text] [loop start=3D1&en= d=3D3] > =A0 [hideif [_Alpha]=3D[interpret][_Alpha_[index]][/interpret]] > =A0=A0=A0=A0=A0 =A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0 [/hideif] > =A0=A0=A0=A0=A0 [/loop] > =A0=A0=A0
No resources were found to be rec= ently added.
> [text]_ManSerialNum=3D[interpret][_ManSerialNum_[index]][/interpret][/tex= t] > =A0=A0=A0=A0=A0=A0=A0=A0=A0 [text]_Alpha=3D[interpret][_Alpha_[index]][/i= nterpret][/text] [text > show=3DT]index_count=3D[math][index_count]+1[/math]. > =A0=A0=A0=A0=A0=A0=A0=A0=A0 [/text] [thisurl]" > class=3D"DefaultLinks_Font">[_Alpha]
> =A0=A0=A0=A0=A0=A0=A0=A0
> =A0
> > > > [/hideif] > [/hideif] > [/hideif] > > > > On Sat, Aug 28, 2010 at 9:22 AM, Govinda > wrote: >> >> If I understand you correctly... >> try this: >> [hideif [url][_Alpha][/url]=3D%5B_Alpha_[index]%5D]CODE[/hideif] >> if that works, then the issue is that [raw] turns off [interpret], meani= ng >> [index] stays literally "[index]".. so you never actually were checking >> against=A0(e.g.) "[_Alpha_2]" (like you were trying to do) >> (in the loop's (e.g.) 2nd iteration). >> ... so we have to 'cheat' like the above. >> (An opening square bracket becomes >> %5B >> inside an [url] wrapper...) >> If that does not work, then say so, and I'll look again. >> -G >> On Aug 28, 2010, at 7:51 AM, Suzanne Swift wrote: >> >> Hi everyone, >> >> This may be a simple fix, but I haven't been able to come up with a >> solution.=A0 Anyone know the answer? >> >> I've created a variable: >> [text]_Alpha=3D[interpret][_ >> Alpha_[index]][/interpret][/text] >> >> which is within a loop: >> [loop start=3D1&end=3D3] >> >> both of the above follow a search: >> >> =A0=A0=A0 [search >> db=3Dmydatabase.db&eqClientIDdatarq=3D[_ClientID]&neAlphadatarq=3D[blank= ]&neDate_Addeddatarq=3D[blank]&Alphasumm=3DT&deDate_Addedsort=3D1&max=3D3] >> =A0=A0=A0 [text]AddedResourcesFound=3D[numfound][/text] >> >> =A0=A0=A0 =A0=A0=A0 [founditems] >> =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [text]_ManSerialNum_[index]=3D[ManSerialNu= mber][/text] >> =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [text]_Alpha_[index]=3D[Alpha][/text] >> =A0=A0=A0 =A0=A0=A0 [/founditems] >> =A0=A0=A0 [/search] >> >> >> In the case I'm trying to solve, [numfound]=3D1. >> >> >> I want to hide a section of my code if the interpreted variable is raw >> (i.e. [_Alpha_2] or [_Alpha_3]). >> >> I've tried the following: >> =A0[hideif [_Alpha]=3D[interpret][_Alpha_[index]][/interpret]]CODE[/hide= if] >> =A0[hideif >> [_Alpha]=3D[raw][interpret][_Alpha_[index]][/interpret][/raw]]CODE[/hide= if] >> =A0 [hideif >> [_Alpha]=3D[interpret][raw][_Alpha_[index]][/raw][/interpret]]CODE[/hide= if] >> =A0 [hideif [_Alpha]=3D[raw][_Alpha_[index]][/raw]]CODE[/hideif] >> >> but none of them work.=A0 I haven't done much coding with [interpret] ta= gs. >> Is there some other way to hide this code? >> >> Thanks, >> Suzanne >> >> ------------ >> Govinda >> govinda.webdnatalk@gmail.com >> >> >> > > William DeVaul

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:

Search Question (2003) NT beta ReadMe missing (b12-b15) (1997) Nested tags count question (1997) Comments in db? (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) Text vs. Math (2000) Review comparison by PC Magazine: Open for On-line Business (1997) Help!!!! (1997) Showif Or (2000) UPS Shipping Formula in WebCat (ot) (1999) RE: is sku a REQUIRED field on NT (1997) Spawn doesn't work as advertised ... (2000) A question on sub-categories (1997) RE: [WebDNA] Webstar (2008) FAX orders (1996) unitshipcost vs shipcosts (1997) creator code (1997) Country & Ship-to address & other fields ? (1997) [SearchString] problem with [search] context (1997) converting tabs (1997)