RE: [Catalyst] CRUD Question. How to update a record.

2007-02-20 Thread Will Smith
you can use this to add value to a text field: my $e = $w-element('Textfield', 'itemid' )-label('ItemId')-value(...)-size(30); Hans Ophüls [EMAIL PROTECTED] wrote: But I have a problem with implementing an update function. It schould select a record from the database and insert the

RE: [Catalyst] CRUD Question. How to update a record.

2007-02-19 Thread Hans Ophüls
But I have a problem with implementing an update function. It schould select a record from the database and insert the data into a widget. sub hw_update : Local { my ($self, $c, $id) = @_; # Search for the product c-model('MyAppDB::Product')-search({id = $id}); #