You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Entry validation formula to restrict user to apply more than 2 leaves

Question
22
Views
0
Comments

Summary:

Hi all,

The requirement is to restrict users to take more than 2 consecutive leaves in a row


Content (required):

If a user applies 2 days leave in a single transaction, system shouldn't allow taking leave on 3rd-day Example - User already applied for leave on Tuesday & Wednesday ( in a single transaction), system shouldn't allow to take leave on, Monday to Thursday.

Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

if l_day='2' and l_day1='3' then

(

q=1

CHANGE_CONTEXTS(START_DATE=ADD_DAYS(iv_start_date, -1), END_DATE=ADD_DAYS(iv_start_date, -1))

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!