Skip to Content
author's profile photo Former Member
Former Member

Using htmlb:dateNavigator to only display month and year

Hi all,

I would like to use the dateNavigator to allow the user to choose a month and a year BUT NOT a day. Does anyone know if this is possible? Would it make sense to use htmlb:dateNavigator for this or should I use some other means?

Thanks a lot for your help.

Best Regards

Jens

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 19, 2005 at 07:50 AM

    I am not sure whether you can use dateNavigator for this case , similar case we have used htmlb:dropdownListBox

    <htmlb:dropdownListBox id = "period"

    nameOfKeyColumn = "NAME"

    nameOfValueColumn = "VALUE"

    table = "<%= tab1 %>"

    onSelect = "DDLB1Event"

    selection = "<%= period %>"

    width = "110"

    disabled = "<%= dd_disable %>" />

    ta1 is of type TIHTTPNVP which we populated with year and month.

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 19, 2005 at 07:53 AM

    Hi Jens,

    the dateNavigator has the attributes onDayClick, onWeekClick and onMonthClick, so you can for example only trigger an event when the user clicks on a month.

    Please read the documentation for this extension, there you can find an example.

    Regards,

    Rainer

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.