Re: Using [showif] within [lineitems] [code fragment]
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 29382
interpreted = N
texte = On 3/20/00 12:53 PM, Glenn Busbin at GBusbin@mindspring.com wrote:> Post a line or two from your database along with the code from your tpl page> and maybe we can find out what's wrong.Ok. I thought I did this yesterday, but since I don't have any responses norproof of sending in my outbox, I'll try it again.The application is an online pharmacy. Before a purchase can be completed,we will require the customer to answer a few health questions (dependent onthe medication they're attempting to purchase) so our physician canapprove/deny the order.Database items include:SKU NAME DESC STRENGTH PACKSIZE PRICE1 Celebrex capsules 100mg 60 10.002 Prevacid capsules 30mg 60 10.003 Prilosec capsules 20mg 60 10.00Now, to accomplish what I'm looking to do, I've created a new template thatgets called before the invoice to display the appropriate questions.First, I use a conventional [lineitems] context to summarize the order anddisplay a subtotal.In a second [lineitems], I try this:[lineItems][Showif [textA]=Celebrex][include celebrex.inc] [/Showif][/lineItems]In this case, textA is set by performing a [lookup] on each lineitem andsucking in the NAME field.Close? No Cigar? or Not A Snowball's Chance?-- Andrew Vernonavernon@dramatols.net-------------------------------------------------------------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
Associated Messages, from the most recent to the oldest:
On 3/20/00 12:53 PM, Glenn Busbin at GBusbin@mindspring.com wrote:> Post a line or two from your database along with the code from your tpl page> and maybe we can find out what's wrong.Ok. I thought I did this yesterday, but since I don't have any responses norproof of sending in my outbox, I'll try it again.The application is an online pharmacy. Before a purchase can be completed,we will require the customer to answer a few health questions (dependent onthe medication they're attempting to purchase) so our physician canapprove/deny the order.Database items include:SKU NAME DESC STRENGTH PACKSIZE PRICE1 Celebrex capsules 100mg 60 10.002 Prevacid capsules 30mg 60 10.003 Prilosec capsules 20mg 60 10.00Now, to accomplish what I'm looking to do, I've created a new template thatgets called before the invoice to display the appropriate questions.First, I use a conventional [lineitems] context to summarize the order anddisplay a subtotal.In a second [lineitems], I try this:[lineitems][Showif [textA]=Celebrex][include celebrex.inc] [/Showif][/lineItems]In this case, textA is set by performing a [lookup] on each lineitem andsucking in the NAME field.Close? No Cigar? or Not A Snowball's Chance?-- Andrew Vernonavernon@dramatols.net-------------------------------------------------------------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
Andrew Vernon
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:
RE: Signal Raised (1997)
WebCatalog NT beta 18 now available (1997)
Authenticate (1997)
Grant, please help me ... (1997)
This Code Kills My WebCatalog Dead (2003)
check out page (SSL) not loading on Netscape 4.0+ (1999)
Still Stumped on ShowNext...HELP! (1997)
nested context (1998)
Roundup function? (1997)
WEBCAT HIERARCHY (1999)
more on the Shipcost update problem (1997)
Country & Ship-to address & other fields ? (1997)
Location of Browser Info.txt file (1997)
[WebDNA] Quick test (2008)
problems with 2 tags shakur (1997)
Show shoppingcart after remove last item (1997)
Shopping Cart Best Practices (2006)
Web Catalog 2 demo (1997)
Dubble Sku's in a Database (1999)
Why won't Netscape... (2000)