Mario,

I don't think DBFORMS is structured to do what you want out of the box. 

My initial view is that you may be able to do this with interceptors on a 
querydef.

A querydef is like a view, but updatable. You could create a querydef for a 
single table or for joined tables. Try and create a querydef for a single table 
and then add an interceptor (see docs) that overrides the update event to do 
the copy.

Depending on how your data is being displayed (list vs table) you will need a 
bit of javascript to force dbforms to re-execute the query to display your 
newly inserted row.

Another way is to create a servlet that is executed by javascript, passing down 
the form values as parameters.

HIH

Jez.



> Mario Moroni <[EMAIL PROTECTED]> wrote:
> 
> 
> Hi,
> 
> I need to make the copy of a row of a database changing only the key 
> field.
> 
> I can pass the key manually.
> 
> How can I use JDBForms to do this?
> 
> Should I make the copy the value of any single field?
> 
> Thanks in advance.
> 
> Mario
> 
> 
> 
> 
>  
>  
>  --
>  Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>  
>  Sponsor:
>  Vuoi stupirla con un gesto d'amore? Ricorda... un Diamante รจ per 
> sempre!
> * Regalale un gioiello con Diamante e punta dritto al suo cuore!
>  Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5632&d=12-3
> 
> -------------------------------------------------------------------------
> 
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> _______________________________________________
> DbForms Mailing List
> 
> http://www.wap-force.net/dbforms

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DbForms Mailing List

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

Reply via email to