How to block user user activity creation based on start date
Hi Team,
We need to block user activity start date if less than 10 days from creation date. Can you please suggest the way to do this. I have tested below validation but not working.
/*def Today = today()
def numberDay = day(Today);
numberDay = numberDay -10;
if(ActivityStartDate == numberDay)
return false
else */
//return true
//def stringDate = "2010-09-08";
//def startDate = today() - 10
def type = getAttribute('ActivityFunctionCode');
def vStartDate = ActivityStartDate
def count = findAtivityStartDate(vStartDate)
//if(count <2)
if((vStartDate == today() ))//- 10))
return false
else
return true
Regards,
Chandan