Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Version: Windchill 13.0
Use Case: We have a customized Workflow that has a Date as variable (actually, I would prefer a date like LocalDate for the user, but Windchill is still proposing the java.date.Date). I would like that a user can set the date during a User Task.
Description:
The variable is shown a a text, without any format hint for the user, and the conversion to Timestamp depends on the timezone of the user (if the String is not completely filled) ...
How could we provide a date picker as input instead of a input text ?
When trying to define a variable as Timestamp (similar to PTC's variables), I get the following error from the Workflow Designer.
Hi @lmouchard
The Windchill does not provide easy way how to provide the date picker in the workflow task page.
I found only option to provide a enumeration drop down list. CS36017 - How to create a drop down list in a workflow
Unfortunately there is no @GenAs annotation for the datetime.
CS61279 - Creating a Date type variable does not provide a Calendar picker in Workflow task
In your case, I would try to use own jsp custom template for the task a try to build own picker in the jsp page.
CS133197 - How to customize a specific workflow task form
or use different way how to set the date. For example add a function to the action menu with own wizard where is much easier to use the date picker.
PetrH
Hello @HelesicPetr, thanks for your searches.
It would have been a convenient way for the users but do not want to customize so much. I guess they 'll have to go on related part themselves and set the attribute from there.
I am wondering whether the use of Timestamp (instead of Date) could help (as PTC uses such variables in Workflow activities. The Workflow Designer does not allow to define a new variable of this type.
Hi @lmouchard
There is no clear way how to achieve it without customization.
There is a restriction of the usage for the variable definition there and one of them is the java.sql.Timestamp you have to work with that information and find different way how to achieve what you want.
PetrH
Hello @lmouchard,
It looks like you have some responses from some community members. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution.
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.
Thanks,
Vivek N.
Community Moderation Team.
