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:

WebCatalog2 for NT Beta Request (1997) error message (sorry) (2000) UPPERCASE (1997) WCS Newbie question (1997) [WebDNA] Digest from talk@webdna.us (2018) Generating Report Totals (1997) [WebDNA] Date weirdness (2014) problem (how to mark orders as 'opened') (1998) WebDNA Threaded Discussions? (2004) When do we get to request new features? (1999) Strange intermittent WebDNA problems Workaround (2008) Clean Code: Rules for inserting keyboard returns? (1997) [BoldWords] WebCat.acgib15Mac (1997) Error Log.db --however (1997) Shell script within a sandbox (2005) WebCatalog seems to choke on large (2meg) html files. (1998) reverse loops (1998) Pirated WebCat? NOT... (2003) WebDNA 6.x - Compatibility with Fedora release 1? (2004) Configuration Q (1998)