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:
UPS Shipping (1999)
WebCat2 Append problem (B14Macacgi) (1997)
WebCat and search engines (1998)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Document Contains No Data! (1997)
Fun with dates (1997)
Calendar Program (2004)
[WebDNA] unix-Linux Intel Apache Module version 8.0.2 (2016)
Questions To Answer (1997)
Access Denied! But why? (1997)
[/application] error? (1997)
StoreBuilder (retitled) (2002)
Multiple Passwords (1997)
Welcome Back (was) Newbie Question (1999)
Summing fields (1997)
security (1997)
port 16080 problem (2003)
passing info to thankyou.tpl (1998)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
WebCat, The Trend, & Consolidating... (1997)