Re: [WebDNA] [raw] tag with [interpret] question
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105732
interpreted = N
texte = You've confused me by posting sections of your code in a different order than it appears in your template, so I;m not real clear on what you're trying to accomplish. If you post your actual code -- exactly as it exists in your webdna template -- we may be better able to figure it out and then propose a reasonable solution.Sincerely,Kenneth Grome> Hi everyone,> > This may be a simple fix, but I haven't been able to come up with a> solution. Anyone know the answer?> > I've created a variable:> [text]_Alpha=[interpret][_> Alpha_[index]][/interpret][/text]> > which is within a loop:> [loop start=1&end=3]> > both of the above follow a search:> > [search> db=mydatabase.db&eqClientIDdatarq=[_ClientID]&neAlphadatarq=[blank]&neDate_Addeddatarq=[blank]&Alphasumm=T&deDate_Addedsort=1&max=3]> [text]AddedResourcesFound=[numfound][/text]> > [founditems]> [text]_ManSerialNum_[index]=[ManSerialNumber][/text]> [text]_Alpha_[index]=[Alpha][/text]> [/founditems]> [/search]> > > In the case I'm trying to solve, [numfound]=1.> > > 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:> [hideif [_Alpha]=[interpret][_Alpha_[index]][/interpret]]CODE[/hideif]> [hideif> [_Alpha]=[raw][interpret][_Alpha_[index]][/interpret][/raw]]CODE[/hideif]> [hideif> [_Alpha]=[interpret][raw][_Alpha_[index]][/raw][/interpret]]CODE[/hideif]> [hideif [_Alpha]=[raw][_Alpha_[index]][/raw]]CODE[/hideif]> > but none of them work. I haven't done much coding with [interpret] tags.> Is there some other way to hide this code?> > Thanks,> Suzanne>
Associated Messages, from the most recent to the oldest:
You've confused me by posting sections of your code in a different order than it appears in your template, so I;m not real clear on what you're trying to accomplish. If you post your actual code -- exactly as it exists in your webdna template -- we may be better able to figure it out and then propose a reasonable solution.Sincerely,Kenneth Grome> Hi everyone,> > This may be a simple fix, but I haven't been able to come up with a> solution. Anyone know the answer?> > I've created a variable:>
[text]_Alpha=
[interpret][_> Alpha_[index]][/interpret][/text]> > which is within a loop:> [loop start=1&end=3]> > both of the above follow a search:> > [search> db=mydatabase.db&eqClientIDdatarq=[_ClientID]&neAlphadatarq=[blank]&neDate_Addeddatarq=[blank]&Alphasumm=T&deDate_Addedsort=1&max=3]>
[text]AddedResourcesFound=[numfound][/text]> >
[founditems]>
[text]_ManSerialNum_[index]=[ManSerialNumber][/text]>
[text]_Alpha_[index]=[Alpha][/text]> [/founditems]> [/search]> > > In the case I'm trying to solve, [numfound]=1.> > > 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:> [hideif [_Alpha]=
[interpret][_Alpha_[index]][/interpret]]CODE[/hideif]> [hideif> [_Alpha]=
[raw][interpret][_Alpha_[index]][/interpret][/raw]]CODE[/hideif]> [hideif> [_Alpha]=
[interpret][raw][_Alpha_[index]][/raw][/interpret]]CODE[/hideif]> [hideif [_Alpha]=
[raw][_Alpha_[index]][/raw]]CODE[/hideif]> > but none of them work. I haven't done much coding with
[interpret] tags.> Is there some other way to hide this code?> > Thanks,> Suzanne>
Kenneth Grome
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:
WebCatalog 2.1 License for Sale (1998)
Shopping carts and reloading pages (1997)
simple [convertChars] Q (2000)
Nested tags count question (1997)
Subdomain mapping for SSL (2002)
WebCatalog/Mac 2.1b2 New Features (1997)
My X-Mas Wish (1999)
too many nested tags ... (1997)
Searchable WebCat (etc.) Docs ? (1997)
Date search - yes or no (1997)
WC2.0 Memory Requirements (1997)
OT - New Ti Books (2002)
RE: Problems with dbcatalog.exe (1997)
So many lookers, hey smith micro (2003)
Weird problems with [SHOWIF]s (1997)
Emailer [cart] file names (1997)
Can ShowNext do this? (2000)
return missing item (was:WebCat Sales) (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
select multiple (1997)