I am having a requirement in ICN Entry Template to prevent user from selecting a back date. I understand that this can be achieved using EDS and I have partly done it. I am able to set the MinValue to a static/hard coded date. But I am not very sure how to set the MinValue dynamically.
This is how I have done it.
{ "symbolicName": "date1", "label": "Date 1 : ", "minValue": "1982-09-10T01:18:17Z" }
This is how I want it to be:
{ "symbolicName": "date1", "label": "Date 1", "minValue": {now} OR {today} }
Any pointers would be greatly appreciated.
You are right, this is a problem I usually solve with EDS. What you need is Java servlet which dynamically generates the JSON. To avoid handling all the JSON stuff yourself you can use this library https://github.com/ecmdeveloper/eds-servlet to do most of the work for you.
DISCLAIMER: I am the author of this library.
Using this library your specific problem can be solved as follows:
Deploy this servlet to WebSphere and point your EDS configuration to this servlet.
Now you cannot enter a date in the past for the property
TestDateProperty1for the classTestDocumentClass1: