For example now I tried to put the filter on dbfrom tag plus the dbfilter tag,
but the former is TOO static and it's impossible for the user to change the
filtering criteria.

Well you could define the filter on dbform tag to be your default like:


String default =dob="1/1/2000";
String myfilter;

if (request.getParameter("year_of_birth)!=null){
myfilter="dob="+(request.getParameter("year_of_birth");
}else myfilter=default;

Then set a goToButton to navigate to the current record. And then set a field in your form to allow user input <textarea name="year_of_birth"></textarea> or some such way

And I think you would have a default filter that allowed user input.


Of course you'd need also <db:dbform filter=<%=myfilter%>


Bet you already knew that though.
--
Shawn

Happily using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
DbForms Mailing List


http://www.wap-force.net/dbforms

Reply via email to