Hi
I have disabled the previous dates in workflow calendar, hence the same format is reflecting in the metadata date calendar format. Kindly help me to get back the original calendar format in metadata date calendar format.
Regards
Vinutha M P
Please elaborate on what you have done to disable "previous dates in workflow calendar" - I do not understand what you mean by that / what specifically you have done, and without that it is impossible to answer any question.
Under Task-workflow I've Started-Start Workflow, Here in the duedate tag i have disabled the previous dates.But this change is reflecting all over the alfresco platform.Kindly help me to disable only in that particular workflow.
It's still just gibberish to me. Maybe you can illustrate with one or two screenshots.
In screenshot you can see, I have disabled the previous dates that to especially for workflow calendar. So this change is reflecting all over the calendar of alfresco platform.Kindly help me to disable only in that particular workflow.
In order to disable the previous dates in calendar,I have added the following code.
In date-picker.js file, inside the construct the picker
as this.widgets.calendar.cfg.setProperty("mindate", selected); and also have added the code in date-picker-min.js file as this.widgets.calendar.cfg.setProperty("mindate",s);
But the change is reflecting all over the calendar of alfresco platform.Kindly help me to disable only in that particular workflow.
Regards
Vinutha M P
Now it makes sense - you disallowed selecting dates in the past. Well, in order to avoid having your changes affect all of Alfresco, you should not adapt / modify the original Alfresco date picker, but instead implement your own form control with custom client-side JavaScript that provides your restricted picker. Most of it can basically be a 1-to-1 copy, though it should have its own component namespace. Then, you'd need to configure every date field in workflow forms where you want your restriction to apply to use your custom field.
Alternatively, simply adapt the default form control to take a parameter so the feature is configurable, and then again, configure every date field in workflow forms where you want your restriction to apply to use that parameter to enable it.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.