Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.862.385 Times

Class::DBI::FormBuilder 0.481

  Date Added: April 18, 2010  |  Visits: 617

Class::DBI::FormBuilder

Report Broken Link
Printer Friendly Version


Product Homepage
Download (70 downloads)



Class::DBI::FormBuilder is a Perl module with Class::DBI/CGI::FormBuilder integration. SYNOPSIS package Film; use strict; use warnings; use base Class::DBI; use Class::DBI::FormBuilder; # for indented output: # use Class::DBI::FormBuilder PrettyPrint => ALL; # POST all forms to server Film->form_builder_defaults->{method} = post; # customise how some fields are built: # actor is a has_a field, and the # related table has 1000s of rows, so we dont want the default popup widget, # we just want to show the current value Film->form_builder_defaults->{process_fields}->{actor} = VALUE; # trailer stores an mpeg file, but CDBI::FB cannot automatically detect # file upload fields, so need to tell it: Film->form_builder_defaults->{process_fields}->{trailer} = FILE; # has_a fields will be automatically set to required. Additional fields can be specified: Film->form_builder_defaults->{required} = qw( foo bar ); # In a nearby piece of code... my $film = Film->retrieve( $id ); print $film->as_form( params => $q )->render; # or $r if mod_perl # For a search app: my $search_form = Film->search_form; # as_form plus a few tweaks # A fairly complete mini-app: my $form = Film->as_form( params => $q ); # or $r if mod_perl if ( $form->submitted and $form->validate ) { # whatever you need: my $obj = Film->create_from_form( $form ); my $obj = Film->update_from_form( $form ); my $obj = Film->update_or_create_from_form( $form ); my $obj = Film->retrieve_from_form( $form ); my $iter = Film->search_from_form( $form ); my $iter = Film->search_like_from_form( $form ); my $iter = Film->search_where_from_form( $form ); my $obj = Film->find_or_create_from_form( $form ); my $obj = Film->retrieve_or_create_from_form( $form ); print $form->confirm; } else { print $form->render; } # See CGI::FormBuilder docs and website for lots more information. Errata: use of column name/accessor/mutator is currently broken if your column accessors/mutators are different from the column name. The documentation is also broken w.r.t. this. This module creates a CGI::FormBuilder form from a CDBI class or object. If from an object, it populates the form fields with the objects values. Column metadata and CDBI relationships are analyzed and the fields of the form are modified accordingly. For instance, MySQL enum and set columns are configured as select, radiobutton or checkbox widgets as appropriate, and appropriate widgets are built for has_a, has_many and might_have relationships. Further relationships can be added by subclassing. has_a columns are set as required fields in create/update forms..

Requirements: No special requirements
Platforms: Linux
Keyword: Cdbi Cgi Classdbiformbuilder Dbi Fields Form Formbuilder Libraries Module Obj Perl Perl Module Programming Search
Users rating: 0/10

License: Freeware Size: 46.08 KB
USER REVIEWS
More Reviews or Write Review


CLASS::DBI::FORMBUILDER RELATED
Libraries  -  HTML::FormHighlight 0.03
HTML::FormHighlight Perl module can help you to highlights fields in an HTML form. SYNOPSIS use HTML::FormHighlight; my $h = new HTML::FormHighlight; print $h->highlight( scalarref => $form, fields => [ A, B, C ], ); print...
5.12 KB  
Libraries  -  CGI::Application::Plugin::Authentication::Driver 0.11
CGI::Application::Plugin::Authentication::Driver is a Perl base module for building driver clasees for CGI::Application::Plugin::Authentication. SYNOPSIS package CGI::Application::Plugin::Authentication::Driver::MyDriver; use base...
47.1 KB  
Network & Internet  -  cgi-postin 1.19
cgi-postin utility processes data generated from a World-Wide Web form. cgi-postin is a standalone processor that may be run easily from sh, perl, or Tcl scripts. Important Note: I recommend this tool only when implementing CGIs as shell...
6.14 KB  
Libraries  -  DBI::FAQ 1.52
DBI::FAQ is a Perl module for the Frequently Asked Questions of the Perl5 Database Interface. What is DBI, DBperl, Oraperl and *perl? To quote Tim Bunce, the architect and author of DBI: ``DBI is a database access Application Programming...
409.6 KB  
Libraries  -  DBD::JDBC 0.70
DBD::JDBC is a JDBC proxy driver for the DBI module. SYNOPSIS use DBI; $dbh = DBI->connect("dbi:JDBC:hostname=$hostname;port=$port;url=$url", $user, $password); # See the DBI module documentation. DBD::JDBC is a Perl module which works...
1024 KB  
Web Authoring  -  life-insurance-policy-nichemodulator 1.00
Niche Modulator is a one time install, powerful, cgi script that enables you to generate on the fly headings, sub headings, site welcome messages, subscription form headings and more based on exactly the same search terms used by your site visitor...
673 KB  
Programming  -  CGI::Application::Plugin::AnyTemplate 0.18
CGI::Application::Plugin::AnyTemplate allows you to use any supported Perl templating system using a single consistent interface. Currently supported templating systems include HTML::Template, HTML::Template::Expr,...
71.68 KB  
Security Tools  -  OpenSC 0.11.3
OpenSC consists of tools and libraries and a PKCS#11 module to use smart cards and initialize blank smart cards. OpenSC project supports many commercial smart cards with filesystems, many national ID cards (read only), and some Java Card cards...
1.2 MB  
Chat  -  CGI:IRC Module 0.5.9
CGI:IRC Module is a Perl/CGI program that lets you access IRC from a web browser, it is designed to be flexible and has many uses such as an IRC gateway for an IRC network, a chat-room for a website or to access IRC when stuck behind a restrictive...
 
Libraries  -  Apache::WebSNMP 0.11
Apache::WebSNMP is a Perl module that allows for SNMP calls to be embedded in HTML. SYNOPSIS host=zoom.google.org community=public connect interface=ifDescr.2 mac=ifPhysAddress.2 query The...
6.14 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB