html::formhandler::field::display(3pm) [debian man page]
HTML::FormHandler::Field::Display(3pm) User Contributed Perl Documentation HTML::FormHandler::Field::Display(3pm)NAME
HTML::FormHandler::Field::Display - display only field
VERSION
version 0.40013
SYNOPSIS
This class can be used for fields that are display only. It will render the value returned by a form's 'html_<field_name>' method, or the
field's 'html' attribute.
has_field 'explanation' => ( type => 'Display',
html => '<p>This is an explanation...</p>' );
or in a form:
has_field 'explanation' => ( type => 'Display' );
sub html_explanation {
my ( $self, $field ) = @_;
if( $self->something ) {
return '<p>This type of explanation...</p>';
}
else {
return '<p>Another type of explanation...</p>';
}
}
#----
has_field 'username' => ( type => 'Display' );
sub html_username {
my ( $self, $field ) = @_;
return '<div><b>User: </b>' . $field->value . '</div>';
}
or set the name of the rendering method:
has_field 'explanation' => ( type => 'Display', set_html => 'my_explanation' );
sub my_explanation {
....
}
You can also supply an 'html' method with a trait or a custom field. See examples in t/field_traits.t and t/xt/display.t of the
distribution.
AUTHOR
FormHandler Contributors - see HTML::FormHandler
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Gerda Shank.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-25 HTML::FormHandler::Field::Display(3pm)
Check Out this Related Man Page
HTML::FormHandler::Fields(3pm) User Contributed Perl Documentation HTML::FormHandler::Fields(3pm)NAME
HTML::FormHandler::Fields - internal role for form and compound fields
VERSION
version 0.40013
SYNOPSIS
A role to implement field attributes, accessors, etc. To be applied to HTML::FormHandler and HTML::FormHandler::Field::Compound.
fields
The field definitions as built from the field_list and the 'has_field' declarations. This provides clear_fields, add_field,
remove_last_field, num_fields, has_fields, and set_field_at methods.
field( $full_name )
Return the field objct with the full_name passed. Will return undef if the field is not found, or will die if passed a second parameter.
field_index
Convenience function for use with 'set_field_at'. Pass in 'name' of field (not full_name)
sorted_fields
Calls fields and returns them in sorted order by their "order" value. Non-sorted fields are retrieved with 'fields'.
clear methods
clear_data
clear_fields
clear_error_fields
Dump information
dump - turn verbose flag on to get this output
dump_validated - shorter version
AUTHOR
FormHandler Contributors - see HTML::FormHandler
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Gerda Shank.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-25 HTML::FormHandler::Fields(3pm)
Hi Gurus,
sqlplus system @$1 0</opt/oracle/pwdfile
What would be the output of the above life....the password for the user "system" the user is stored in /opt/oracle/pwdfile
When i try to run the script it says password not found?
$1 0<
What is the meaning of the $1 and 0?
... (1 Reply)
I have a file something like:
a     b c    d
sdfsdf    f f   f
f   fffff
dfdf
Now when i read it as
while read line
do
echo $line
done< file
I get the o/p as
a b c d
sdfsdf f f f
f fffff
dfdf (5 Replies)
I am making a program in c. I want the progrm to be able to display file names ( like in unix we do long lisiting)
what should i do?
Any help will be appreciated (3 Replies)
Hi,
I used to count number of fields using following command head -1 <filename> | awk -F"," '{print NF}'
Now the scenario is the delimiter(comma) occurs inside one of the data field. How to ignore the comma inside data and consider only delimiter and count number of fields. The fields are... (1 Reply)
Hey :)
I have some questions regarding the old unix if command.
(see man pageman.cat-v.org/unix-6th/1/if
Here I uploaded the source code: (it's a bit too long, to put it here)
pastebin.com/bj0Hvfrw
Now my questions:
1.) Line 14: The function exp() is called with no arguments. But the... (13 Replies)
Hi everyone,
I am new to this forum and this is my very first post, one i think i will look back at many years from now and have nothing to regret about.
This is simply because i recently installed Linux (Ubuntu) on my system and downloaded a book titled, The Unix Programming Environment. I... (7 Replies)
I have the data in csv in 3 tables. how can I output the same into 3 tables in html.also how can I set the width. tried multiple options . attached is the format.
#!/bin/ksh
awk 'BEGIN{
FS=","
print "<HTML><BODY><TABLE border = '1' cellpadding=10 width=100>"
print... (7 Replies)