Dear All,
thanks to Henner's suggestion I solved this problem in this way:
1. in the form with the search results I created a linkurl like this:
<a href="<db:linkURL href='<%=userManagerSearch.getWebPath() +
userManagerSearch.getManagementPageFileName()+"?NewRecord=CreateRecord" %>'
tableName="users"/>" target="newwin" >
<span class="tinybutton">NewRecord</span></a>
where I put a parameter ?NewRecord=CreateRecord
THEN in the form where I have to manage the data:
2) I create a filter in the dbform with this scriptlet:
String defaultFilterString;
if (request.getParameter("NewRecord")!=null)
defaultFilterString="user_name="+(String) request.getParameter("NewRecord");
else
defaultFilterString="";
FOLLOWED BY:
<db:dbform
..........
.........
filter='<%=defaultFilterString %>' />
In this way the first time I create the new record with this "strange filter"
and all the others the form has an empty default-filter to work as usual..
Tanks Henner
Ivan
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms