Hi Phil,
i got a problem on calling the method.
i intended to call a search (SQL method) statement, which exactly like this:
comment:to select one SQL method
<dtml-if "_['patient_name']!='' and _['patient_id']==''">
<dtml-call "REQUEST.set('b', Search_patient3)">
<dtml-elif "_['patient_id']=='' and _['patient_name']==''">
<dtml-call "REQUEST.set('b', Selectallpatient)">
</dtml-if>
comment:to use the SQL method which already declared in above
<dtml-in b>......</dtml-in>
After the DTML method was called out, it still can return the first page correctly but when i click on the --next XXX records-- it return the error message like this:
Error Type: KeyError
Error Value: patient_name
Traceback:.................
File C:\Program Files\WebSite\lib\python\DocumentTemplate\DT_Util.py, line 339, in eval
(Object: _['patient_name']!='' and _['patient_id']=='')
(Info: _)
File <string>, line 0, in ?
File C:\Program Files\WebSite\lib\python\DocumentTemplate\DT_Util.py, line 161, in careful_getitem
KeyError: (see above)
Is the above if-else statement gone wrong? it seems failed to pass the parameter to the next page, I tried to display the even and odd record in different color, but also can not work
Angie