[Zope] Problem on using nested dtml-ifdtml-in

2001-01-16 Thread Spicklemire, Jerry
Angie asked: The problems is i'm not sure my dtml in order to control the loop of choosing the correct sql in the right situation. The following is my DTML:- dtml-if "_["dtml-var custid"]==custid","_["dtml-var custname"]==custname" dtml-in sqlSearchcust1 /dtml-if dtml-elif

[Zope] Problem on using nested dtml-ifdtml-in

2001-01-12 Thread angie tel
I have been created the 4 different sql method, the first is sqlSearchcust1: select * from customer where custid=dtml-sqlvar custid type=string AND custname=dtml-sqlvar custname type=string //This method will be call when i have to enter both exactly similar to custid and custname in order to

Re: [Zope] Problem on using nested dtml-ifdtml-in

2001-01-12 Thread Dieter Maurer
angie tel writes: ... dtml-if ... dtml-in sql1 /dtml-if As you recognized DTML tags must be *properly* nested... You can do: dtml-if ... dtml-call "REQUEST.set(sql,sql1)" /dtml-if dtml-in sql /dtml-in This way, you get a properly nested DTML structure.