From: "Oliver Gorwits" <oliver.gorwits at oucs.ox.ac.uk> >> How can I add these conditions after defining $rs? > > $rs = $rs->search({id_user => $id_user}); Thank you. This way it works well. I have tried: $rs->{cond}->{id_user} = $id_user; And it works, but only when some conditions are previously defined. Octavian