Hey All,
I found the source of the problem with the new filter tags. I have a href included in the db:body element of my dbform.
<td>
<a href="_javascript:MsgBox(<%= "'"+(String)currentRow_FORM.get("LAST_CHANGED_BY")+"','"+(String)currentRow_FORM.get("LAST_CHANGED_WHEN")+"','"+(String)currentRow_FORM.get("CREATED_WHEN")+"','"+(String)currentRow_FORM.get("CREATED_BY")+"'"%>);">[Info]</a>
</td>
Whenever I filter the form and it returns data, it works fine. However if the query doesnt return any data it crashes. If i remove the href, and the query returns no data, it works fine. So i think if any other elements apart from data bound elements incuded in the body causes a null exception error when the filter query returns nno data. I am not sure if this has been resolved in more recent versions but was just informing you of my findings. Any suggestions are welcome. Thanks.
When the query returns no data the currentRow object is null, so the call to currentRow_FORM.get cause a null pointer exception. So, check for null before using currentRow_** object.
cheers, Sergio Moretti
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ DbForms Mailing List
http://www.wap-force.net/dbforms
