problem

A

aditya

Hi,
I am new to perl and I belive the following code has a problem. Can
someone tell me what? The stuff I want to add in the html page (inside
the 'if' condition below), it doesnt come at all!

Please help!

Aditya


##############################################################################
package App::Dialog::Field::Scheduling::ReoccuringAppts;
##############################################################################

use strict;
use base qw{CGI::Dialog::ContentItem};
use CGI::Dialog;
use CGI::Validator::Field;
use base qw{CGI::Dialog::MultiField};

sub new
{
my ($type, %params) = @_;

#added

my $temp=$params{val};

if ($temp eq '1')
{
return CGI::Dialog::MultiField::new($type, %params,
fields => [
new CGI::Dialog::Field(caption => "Appointments Interval",
name => "appt_Interval",
choiceDelim =>',',
selOptions => q{Day:0, Week:1, 2 Weeks:2, Month:3, 2 Months:4, 6
Months:5, Year:6},
type => 'select',
),

new App::Dialog::Field::Scheduling::Date(caption => "Termination
Date",
name => "Term_date",
options => FLDFLAG_REQUIRED,
),
],
);
}
}
 
W

William Herrera

Hi,
I am new to perl and I belive the following code has a problem. Can
someone tell me what? The stuff I want to add in the html page (inside
the 'if' condition below), it doesnt come at all!

Please help!

Aditya


##############################################################################
package App::Dialog::Field::Scheduling::ReoccuringAppts;
##############################################################################

use strict;
use base qw{CGI::Dialog::ContentItem};
use CGI::Dialog;
use CGI::Validator::Field;
use base qw{CGI::Dialog::MultiField};

We'd help you, but...where is the source to these modules available? I do not
see them on CPAN.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top