Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

month and year

Team

   i need to create one requirement which is below screen shot.

1. I want to select Jan,Feb from the 2012 and Aug,Sep from 2013. how can I do this. if I select july at one list box both list box are getting selected. more over I am having the object called month is common to both. list box  2012 and 2013 ie. this field is comming from the time table.

Kindly guide me how to proceed.
month.png

7 Replies
Not applicable
Author

Hi,

Try with the triggers when you select from the list box it will clear other automatically

Andrea_Ghirardello

I think you need to use a year-month field for selections.

israrkhan
Specialist II
Specialist II

would you will tell us, y you need two list box of months?.

and

if Month is a same field, then off course it will get selected in both list boxes.

but you can create an other field by using AS keyword in script like Month1,

or you can use Alternate State Feature...

tresesco
MVP
MVP

Have you tried implementing alternate state? May be like attached sample.

jagan
Luminary Alumni
Luminary Alumni

Hi Srinivasan,

Arrive  a Month-Year field in script

like this =MonthName(DateFieldName)

This is the easiest way.

Regards,

Jagan.

Not applicable
Author

Hi,

You can try following :

1. Having triggers (as suggested by Amuthabharathi Subramanian) on second list box for clearing the selections in first list bx when anything is selected in second list box. This is useful only when you want selection to be done in any one of the list boxes at one time.

2. As Andrea Ghirardello has suggested, you can use year-month field for selections.

For this, you can create a field in script as Year-Month which will have values as

2012-Jan, 2012-feb, 2013-Jan, 2013-feb and so on. This way you can easily select the desired values.

3. One more way is you can rename the field "Month" in script itself and use the renamed field in the front end for second list box.  But this will work only if the renamed field is stand alone i.e. it is not related to any of the other fields.

Hope this helps.

qlikpahadi07
Specialist
Specialist

Simply  use a year-month field for selections.

and the Tricky part is you can press CNTR key and select the months or simply can change the Selection Slide Override to LED Check Boxes ... see the attachment