SQLite::Work::CGI is a Perl module to report and update a SQLite database using CGI.
CLASS METHODS
new
my $obj = SQLite::Work->new( database=>$database_file, row_ids=>{ episodes=>'title_id', }, join_cols=>{ 'episodes+recordings'=>'title_id', } }, report_template=>$report_template, default_format=>{ 'episodes' => { 'title'=>'title', 'series_title'=>'title', } }, input_format=>{ 'reviews' => { 'Review'=>{ type=>'textarea', cols=>60, rows=>4, } } }, max_sort_fields=>10, sort_label=>'Zsort', sort_reversed_prefix=>'Zsort_reversed_', headers_label=>'Zheader_', show_label=>'Zshow', where_prefix=>'Zwhere_', not_prefix=>'Znot_', );
Make a new report object.
Takes the same arguments as SQLite::Work::new() plus the following additions:
input_format
This contains information about what style of input field should be used for this particular column in this table. This is used for the Edit and Add forms.
max_sort_fields
The maximum number of sort fields required (default: 10)
sort_label
Name of the sort parameter.
sort_reversed_prefix
Prefix of the sort-reversed parameters.
headers_label
Name of the headers parameter.
show_label
Name of the columns-to-show parameter.
where_prefix
Prefix of the 'where' parameters.
not_prefix
Prefix of the not-where parameters.
OBJECT METHODS
do_select
$obj->do_select($table, command=>'Search');
Select data from a table in the database. Uses CGI to get most of the parameters.
The 'command' is 'Search' by default; if it is something else, then the result generated has edit fields and buttons in it.
do_single_update
Update a single column in a single row, or all columns in a single row.
do_add_form
$obj->do_add_form($table);
Set up for adding a row to the database.
do_add
Add a row to a table.
do_single_delete
Delete a single row.
make_search_form
Create the search form for the given table.
my $form = $obj->make_search_form($table, %args);
do_search_form
Display the search form for the given table.
make_table_form
Make the table selection form.
do_table_form
Display the table selection form.
Requirements:
· Perl
Product's homepage
Requirements:
· Perl