Showif, Hideif reverse logic ?

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10291
interpreted = N
texte = And yet one more question :-)This one has to do with showif and hideif usage. Take the following with a grain of salt as we're in the throes of learning too much at the same time.We tried using: [showif [CANEMAIL]=T]Can EmailYes[/showif]in the detail.tmpl, but we get exactly the opposite result we expected. In the above case, Can Email will only show up if we set [CANEMAIL]=F in the line when the catalog.txt has CANEMAIL set to T !?If we use hideif we get the reverse behaviour, still reverse logic as far as we can tell.What we wanted to do was just display Can Email if it could be done, there is little point in displaying it if it can't be done and might confuse the customers.Since we've been flailing around with too many tests and edits we may indeed have this all wrong, so don't go off trying to debug anything if it works right as far as you (PCS) are concerned. If you see anything wrong in how we implemented the above line we'd like to know, likewise, if there is a known problem we'd like to know that too.Thanks again, and thanks for what looks like a winner of a product !! -SvenPS Does www.DigiKey.com use your software ? The flavor of their pages sure is familiar after going through your sample pages !PPS All my questions are a good sign. We've _really_ made progress today and we're really enthusiastic about where we think we'll be able to take the PCS Web Commerce Solution for our particular application._____________________________________________________________________ Sven U. Grenander BeeHive Technologies, Inc. http://www.bzzzzzz.com - with a WebCam in Pasadena, California _____________________________________________________________________ Associated Messages, from the most recent to the oldest:

    
  1. Re: Showif, Hideif reverse logic ? (Grant Hulbert 1997)
  2. Showif, Hideif reverse logic ? (Sven U. Grenander 1997)
And yet one more question :-)This one has to do with showif and hideif usage. Take the following with a grain of salt as we're in the throes of learning too much at the same time.We tried using: [showif [CANEMAIL]=T]Can EmailYes[/showif]in the detail.tmpl, but we get exactly the opposite result we expected. In the above case, Can Email will only show up if we set [CANEMAIL]=F in the line when the catalog.txt has CANEMAIL set to T !?If we use hideif we get the reverse behaviour, still reverse logic as far as we can tell.What we wanted to do was just display Can Email if it could be done, there is little point in displaying it if it can't be done and might confuse the customers.Since we've been flailing around with too many tests and edits we may indeed have this all wrong, so don't go off trying to debug anything if it works right as far as you (PCS) are concerned. If you see anything wrong in how we implemented the above line we'd like to know, likewise, if there is a known problem we'd like to know that too.Thanks again, and thanks for what looks like a winner of a product !! -SvenPS Does www.DigiKey.com use your software ? The flavor of their pages sure is familiar after going through your sample pages !PPS All my questions are a good sign. We've _really_ made progress today and we're really enthusiastic about where we think we'll be able to take the PCS Web Commerce Solution for our particular application._____________________________________________________________________ Sven U. Grenander BeeHive Technologies, Inc. http://www.bzzzzzz.com - with a WebCam in Pasadena, California _____________________________________________________________________ Sven U. Grenander

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:

Tracking (2004) [WebDNA] Still having problems (2008) Couple of questions II (1999) Pixo support? (1998) best way to get 2 unique strings on the same page load? (2000) stumped (2001) Hard Questions ? (1997) XMLNodes Error (2007) Somewhat OT: IE issues (2002) How flexible is Shipping? (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) emailer setup (1997) WebCat for Unix?? (1997) Sending Faxes (2003) WebCatalog for guestbook ? (1997) What about this [delete] situation? (1998) formula.db question (1997) Multiple cart additions (1997) price carry over (1997) Multiple catalog databases and showcart (1997)