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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Translate the entire conversation x

Date Selection

BF_13811900
13-Aquamarine

Date Selection

Version: Windchill 13.0

 

Use Case: I would like to be able to prevent users in my Windchill instance to pick dates in the future when populating a timestamp attribute.


Description:

Can this be achieved?

ACCEPTED SOLUTION

Accepted Solutions

It sounds then what you might need would be some Listener and custom code. You could have the Listener run when the part instance is created, and validate that the date is not in the future. I think the out of the box constraints only allow for setting a static date range.

View solution in original post

5 REPLIES 5

If this is in a workflow, yes this can be done but you need a check step after or you can add code to the transition section of the workflow task to do a date compare. Is there a particular UI entry section that you are looking to validate? There is also creating a validator if its a different part of the UI, not workflow related.

Hi. I am looking to prevent users from picking a date in the future when populating an attribute of a part instance, for example. So, I don't believe this is workflow related.

It sounds then what you might need would be some Listener and custom code. You could have the Listener run when the part instance is created, and validate that the date is not in the future. I think the out of the box constraints only allow for setting a static date range.

Thanks Joe!

Hi @BF_13811900,

 

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation. 

 

Thanks,
Anurag 

Announcements
Top Tags