problem

Discussion in 'Perl Misc' started by aditya, Nov 28, 2003.

  1. aditya

    aditya Guest

    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,
    ),
    ],
    );
    }
    }
    aditya, Nov 28, 2003
    #1
    1. Advertising

  2. On 27 Nov 2003 20:48:32 -0800, (aditya) wrote:

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


    ---
    Use the domain skylightview (dot) com for the reply address instead.
    William Herrera, Nov 29, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Suurkuusk
    Replies:
    0
    Views:
    3,967
    Andreas Suurkuusk
    Jul 27, 2003
  2. Ted Miller
    Replies:
    0
    Views:
    5,145
    Ted Miller
    Sep 13, 2003
  3. Merek
    Replies:
    0
    Views:
    1,955
    Merek
    Dec 3, 2003
  4. Scott Meddows
    Replies:
    1
    Views:
    385
    John Saunders
    Jun 8, 2004
  5. Mike

    Problem problem problem :( Need Help

    Mike, May 7, 2004, in forum: ASP General
    Replies:
    2
    Views:
    543
    Bullschmidt
    May 11, 2004
Loading...

Share This Page