From an href I am entering a CGI::Application runmode with a request_id reference which displays a CGI::Formbuilder form. I want to populate this form with the values of the record from the database which I obtain via a Class::DBI->retrieve on my class. Form builder takes a hashref - Class::DBI provides accessor methods for the fields. Whats the quickest way to iterate through all the Class::DBI fields and generate a hashref for CGI::Formbuilder?
Is it simply a case of iterating through all the fields via the fields array I used to create the CGI::Form and then using $value = $obj->get($column_name) to create the hash?
I bet there is a better way.
btw - I'm impressed with the ease with which a webapp can be out together using CGI, CGI::FormBuilder, Template Toolkit, CGI::Application. Complete web app newbie last week - almost finished this week. Thumbs up to the authors who penned those modules.
Simon