cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Date should have option to set current date as default

Date should have option to set current date as default

it will be good if it is possible to set current date( not the specific date)  as the default value for the date attribute in windchill

3 Comments
Level 15

Explain this in more detail. Windchill currently uses the system date as its default current date.

Where are you seeing another date that is prompting this request?

Level 12

We have a requirement where we should be able to put a constraint that the user should not be able to select a date before today's for the attribute

Hi Binesh,

If you want to disable past days selection in calendar picker, then you might want to follow below instructions:

  1. Update initCal function in <WT_HOME>\codebase\netmarkets\javascript\util\calendar.js

function initCal(_title, _stylesheet, _trlUtils, _dayPos, _monPos, _yrPos, _monLabel, _yrLabel, _disablePastDays, _numYearsToShow, _startingYear) {

  calTitle = _title;

  calCss = _stylesheet;

  trlUtils = _trlUtils;

  monPos = _monPos;

  yrPos = _yrPos;

  dayPos = _dayPos;

  monLabel = _monLabel;

  yrLabel = _yrLabel;

  disablePastDays = true;

  numYearsToShow = _numYearsToShow;

  startingYear = _startingYear;

}

    2. Run ant -f bin/jsfrag_combine.xml from a Windchill shell

    3.  Restart Windchill Method Server

    4. Web browser cache may need to be cleared to see changes

          Past Days.png

I hope this helps you.

Thanks,

Shirish