<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
I need some advice. I still use dtml calls in my systems. My problem is
if the user is searching for a record but the record is not found. The
call is as follows:<br>
<br>
&lt;dtml-call "REQUEST.set('serial_number', serial_number)"&gt;<br>
<br>
&lt;dtml-in lookup_header_record&gt;<br>
&nbsp; &lt;dtml-call "REQUEST.set('equip_type', equip_type)"&gt;<br>
&nbsp; &lt;dtml-call "REQUEST.set('pr', pr)"&gt;<br>
&lt;/dtml-in&gt;<br>
<br>
If the record is not found I get this error:<br>
<br>
<strong>Error Type: KeyError</strong><br>
<strong>Error Value: equip_type</strong><br>
<br>
True statement since there is not record and further in the form I am
trying to output this variable.<br>
Are there any examples that either traps for an error or python script
that can also lookup the record and true a found/not found status.<br>
<br>
Thanks,<br>
Larry<br>
</body>
</html>