Get Started with Redwood for Oracle Cloud HCM Begin Now
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.
For more information, please refer to this announcement explaining best practices for getting answers to questions.
For more information, please refer to this announcement explaining best practices for getting answers to questions.
Entry validation formula to restrict user to apply more than 2 leaves
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))
Tagged:
0