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

4 Comments
BenLoosli
23-Emerald I

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?

BineshKumar1
12-Amethyst

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

ShirishMorkhade
16-Pearl

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

olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.