[Catalyst] Using C::C::FormBuilder With DBIC

2007-02-18 Thread hkclark
Hi Everyone, I have been experimenting with Catalyst::Controller::FormBuilder. I'm trying to provide an edit form for objects read from and written to the DB via DBIx::Class. Have FormBuilder automatically load the data from DBIC into the form seems pretty easy with something like: my

Re: [Catalyst] Using C::C::FormBuilder With DBIC

2007-02-18 Thread RA Jones
[EMAIL PROTECTED] wrote: Hi Everyone, I have been experimenting with Catalyst::Controller::FormBuilder. I'm trying to provide an edit form for objects read from and written to the DB via DBIx::Class. Have FormBuilder automatically load the data from DBIC into the form seems pretty easy

Re: [Catalyst] Using C::C::FormBuilder With DBIC

2007-02-18 Thread hkclark
On 2/18/07, RA Jones [EMAIL PROTECTED] wrote: Any suggestions? What are other folks doing for C::C::FormBuilder and DBIC? I'm pretty new to this, but this is what I did: sub edit : Local Form { # get data into form pretty much as above, then: if ( $form-submitted $form-validate ) {

Re: [Catalyst] Using C::C::FormBuilder With DBIC

2007-02-18 Thread Carl Franks
On 18/02/07, RA Jones [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi Everyone, I have been experimenting with Catalyst::Controller::FormBuilder. I'm trying to provide an edit form for objects read from and written to the DB via DBIx::Class. Have FormBuilder automatically load the

[Catalyst] best way to create a flexible, multiple key, CRUD application?

2007-02-18 Thread Francesc Romà i Frigolé
Hello, I want to create a web application which is basically CRUD, and I was wondering if there is a scaffolding script that can do it for catalyst. It has to support tables with composite primary keys. I thought InstantCRUD would be a good solution but i quickly discovered that it doesn't

Re: [Catalyst] Using C::C::FormBuilder With DBIC

2007-02-18 Thread Mark Zealey
wrt radioboxes on forms/dbic; I have been doing a true/false/null using the following: invited: label: Invited? options: 1=Yes, 0=No required: 0 As this is not required, if nothing is sent back the value will be undef = null; otherwise 1/0 will be returned based on

Re: [Catalyst] Question on serving files

2007-02-18 Thread Chris
You can set the header information to give mime hints to the browser: $c-res-headers-content_type('application/octet-stream'); $c-res-headers-content_length( $stat-size ); $c-res-headers-last_modified( $stat-mtime ); $c-response-headers-header(

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

2007-02-18 Thread Hans Ophüls
Hello, I have just started with catalyst. I have worked through the tutorial and every thing works fine yet. 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)

Re: [Catalyst] best way to create a flexible, multiple key, CRUD application?

2007-02-18 Thread Francesc Romà i Frigolé
Mark, Your words are very encouraging: I'll happily trade 50% more work for getting rid of the black magic ( and get some peace of mind ) I'll start over with your examples.Thank you very much, Francesc On 2/18/07, Mark Zealey [EMAIL PROTECTED] wrote: I looked at the crud modules but i