Sales, Marketing, and Territories Apps - EBS (MOSC)

MOSC Banner

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

EBS Sales Tags

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center