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.629.247 Times

DBIx::Class::FormTools 0.000004

  Date Added: July 08, 2010  |  Visits: 659

DBIx::Class::FormTools

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



DBIx::Class::FormTools is a utility module for building forms with multiple related DBIx::Class objects. SYNOPSIS In the examples I use 3 objects, a Film, an Actor and a Role. Role is a many to many relation between Film and Actor. package MySchema; use base DBIx::Class::Schema; __PACKAGE__->load_classes(qw[ Film Actor Role ]); package MySchema::Film; __PACKAGE__->table(films); __PACKAGE__->add_columns(qw[ id title ]); __PACKAGE__->set_primary_key(id); __PACKAGE__->has_many(roles => MySchema::Role, film_id); package MySchema::Actor; __PACKAGE__->table(films); __PACKAGE__->add_columns(qw[ id name ]); __PACKAGE__->set_primary_key(id); __PACKAGE__->has_many(roles => MySchema::Role, actor_id); package MySchema::Role; __PACKAGE__->table(roles); __PACKAGE__->add_columns(qw[ film_id actor_id ]); __PACKAGE__->set_primary_key(qw[ film_id actor_id ]); __PACKAGE__->belongs_to(film_id => MySchema::Film); __PACKAGE__->belongs_to(actor_id => MySchema::Actor); In your Model class use base qw/DBIx::Class/; __PACKAGE__->load_components(qw/PK::Auto::Pg Core FormTools/); In your view - HTML::Mason example < %init > my $film = $schema->resultset(Film)->find(42); my $actor = $schema->resultset(Actor)->find(24); < /%init > < form > < input name="< % $film->form_fieldname(title, o1) => Title % >" type="text" value="< % $film->title % >" / > < input name="< % $film->form_fieldname(length, o1) % >" type="text" value="< % $film->length % >" / > < input name="< % $film->form_fieldname(comment, o1) % >" type="text" value="< % $film->comment % >" / > < input name="< % $actor->form_fieldname(name, o2) % >" type="text" value="< % $actor->name % >" / >.

Requirements: No special requirements
Platforms: Linux
Keyword: Actor Dbix Dbixclassformtools Film Formtools Id In Your Libraries Module Myschema Name Objects Package Programming
Users rating: 0/10

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


DBIX::CLASS::FORMTOOLS RELATED
Form Processors  -  Menus in your windows app 1.1
Menus in your windows app shows how to implement menus in your Win32 application.
20.48 KB  
Libraries  -  SQL::Preproc 0.10
SQL::Preproc is a Perl module to embed SQL in your Perl (ala SQL preprocessors). SYNOPSIS use SQL::Preproc subclass => Chart, emit => 1, keepsql => 1, syntax => [ Teradata ], pponly => 1, relax => 1, alias => 1, debug => 1; use DBI;...
52.22 KB  
Modules  -  Member ID in viewtopic 1.0.3
This modification will display the member id in viewtopic under the rank
 
Medical  -  My Excela Doc 1.2
The Excela Doc iPhone app is designed to assist you in locating a premier health care provider in the greater southwestern Pennsylvania region. FIND A DOCTOR Enables you to search for providers in your area based on name, specialty,...
5.3 MB  
Audio Tools  -  settevion 1.4.1
settevion is a program that allows you to edit the channels in your Skymaster DXL 9400 Satellite Receiver. This receiver was sold under the name Tevion FTA 203 by Aldi. Note that the current version does not allow writing radio channels into the...
39.94 KB  
Shell & Desktop  -  Kolombo 0.2
Kolombo is a superkaramba theme that provide a way to embed an image identified by an url in your widget. The image is fetched periodically, and stored in a configurable size local repository. Optionally the image can be processes before to be...
23.55 KB  
File Sharing  -  X personal web server 0.1
X personal web server is a personal Web server that sits in your desktop notification area (as a tray icon). X personal web server is a (much) simpler cousin of KPF, but doesnt require kicker and uses the GTK 2 library for its minimal user...
60.42 KB  
Audio Tools  -  music_command 0.1
music_command lets you change tracks or toggle the playing state in your currently running media player. For example, "music_command --next" will skip to the next song. music_command supports banshee, bmp, Muine, Rhythmbox, Totem, XMMS, mpc, and...
10.24 KB  
Puzzles  -  tbclock 1.10
tbclock is a dirty little app that displays a full screen binary clock in your terminal (using curses). It doesnt support resizing (yet). It is quite simple and features modules like guessbin a little game and chrono a timer with tenth of...
11.26 KB  
Telephone Utilities  -  Callintegrator 2.2
Callintegrator project uses the phone numbers in your address book to initiate a call via services like peterzahlt.de or freecall.com. Just click on the phone number and your phone rings. Setup is very easy. Currently, only freecall.com and...
55.3 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