Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Work Item Attributes : How to disable past dates from a calendar to choose from

 
Hi There,

I have an attribute(Due Date) of type Timestamp.
The problem is : the calendar allows me to choose from an old date too.
I wish that the past dates should get disabled when I open the calendar to choose the due date for that work-item.
I know I can validate the due-date in a java-script but is there any other approach already to achieve this?


0 votes

Comments

Hi , can anyone please help me with the above query.

Thanks in advance!



One answer

Permanent link
The date picker does not accept a range (or min/max values) as a parameter, so it displays all dates it knows about. If you want to restrict the date range, although not ideal, you can consider using the "Constraint Date" kind presentation for the Timestamp attribute. Note that "Constraint Date" is normally for formal planning.
https://jazz.net/help-dev/clm/topic/com.ibm.team.apt.doc/topics/c_schedule_constraints.html

You can open an RFE to request the date picker to have a constraint similar to /dijit/form/DateTextBox.
https://dojotoolkit.org/reference-guide/1.10/dijit/form/DateTextBox.html

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,121

Question asked: Oct 07 '15, 1:10 a.m.

Question was seen: 4,069 times

Last updated: Oct 11 '15, 10:37 p.m.

Confirmation Cancel Confirm