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 nor proof 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 on the medication they're attempting to purchase) so our physician can approve/deny the order.Database items include: SKU NAME DESC STRENGTH PACKSIZE PRICE 1 Celebrex capsules 100mg 60 10.00 2 Prevacid capsules 30mg 60 10.00 3 Prilosec capsules 20mg 60 10.00Now, to accomplish what I'm looking to do, I've created a new template that gets called before the invoice to display the appropriate questions. First, I use a conventional [lineitems] context to summarize the order and display 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 and sucking in the NAME field.Close? No Cigar? or Not A Snowball's Chance?-- Andrew Vernon avernon@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:

    
  1. Re: Using [showif] within [lineitems] [code fragment] (Kenneth Grome 2000)
  2. Re: Using [showif] within [lineitems] [code fragment] (Andrew Vernon 2000)
  3. Re: Using [showif] within [lineitems] [code fragment] (Derrick Puckett 2000)
  4. Re: Using [showif] within [lineitems] [code fragment] (Derrick Puckett 2000)
  5. Re: Using [showif] within [lineitems] [code fragment] (Andrew Vernon 2000)
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 nor proof 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 on the medication they're attempting to purchase) so our physician can approve/deny the order.Database items include: SKU NAME DESC STRENGTH PACKSIZE PRICE 1 Celebrex capsules 100mg 60 10.00 2 Prevacid capsules 30mg 60 10.00 3 Prilosec capsules 20mg 60 10.00Now, to accomplish what I'm looking to do, I've created a new template that gets called before the invoice to display the appropriate questions. First, I use a conventional [lineitems] context to summarize the order and display 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 and sucking in the NAME field.Close? No Cigar? or Not A Snowball's Chance?-- Andrew Vernon avernon@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:

[WebDNA] Searching for multiple bits of data in one field or use multiple fields for each bit of data? (2016) Newbie Tax Question (1997) WebCommerce: Folder organization ? (1997) [WebDNA] multi [sendmail] inside [search] (2012) Extracting URL (2007) Help! WebCat2 bug (1997) [HIDEIF] inside [FOUNDITEM] (1997) RAM variables (1997) & not allowed in db by definition? (1999) Triggers (2003) # of real domains on 1 web server (1997) Type 11 errors setting up WebCAt 2 (1997) can WC render sites out? (1997) Loss in Form (1998) two unique banners on one page (1997) CMSBuilder (2004) WebCatalog can't find database (1997) WCf2 and nested tags (1997) Week # problem (1998) Webcatalog on MacOs (2000)