9 Replies Latest reply: Jun 12, 2012 1:51 AM by Gerard Carvalho RSS

Month selection, help needed

Gerard Carvalho

In the front end im pulling month as list box, When i select any month (example May, then all the previous months should also be selected , like Jan to May).

Simillarly it should work for all the months. If i select OCT then JAN to OCT should be selected. How can i get it, Please help me out.

  • Re: Month selection, help needed
    Perumal A

    Hi,

     

    I have attached one Application Please check. this solution  will be useful for your problem .

     

     

     

    Regards

    Perumal A

    • Month selection, help needed
      Gerard Carvalho

      Thanks it was perfect.

       

      I need one more thing, if the date is loaded for 2011 and 2010. If you pull Month and year in a multibox and you are selecting year as 2012 then by default month drop down should show only the 2012 calendar months completed or upto the current month,, other months should not be selected.

      • Month selection, help needed
        Perumal A

        Hi,

        Sorry i Can't understand .if possible little brifly  Explain is btter.

         

         

        Regards

        Perumal

        • Month selection, help needed
          Gerard Carvalho

          We are having a table loaded with 2010 , 2012 , 2011 data. Which will be month and year and amount.

           

          Scenario is the two fields are pulled as a multi box. When i select 2010 year , all the month will be visible simillarly for 2011 all month will be visible. but when i select 2012 year , it should show the month till Jun since it is the current calendar month for 2012. Even if we are having datas for future month of 2012.

           

          For example Amount is a field which is loaded for all the year and its corresponding months.So obviously if i selct year as 2012 , amount data will be shown till dec, since data is loaded till dec 2012. But it should not work like this, when i select year as 2012, data should be shown only till current month.

           

          Final output should be , in the multibox if i selct 2012, month should selected till jan to jun. since jun is current calendar month, In future if the current calendar month is sep means ,then month should be selected from JAN to SEP

           

           

          Regards,

          Gerard