Looping to get the absence type count
Summary: Below logic to check the specific absence type accurance for + 365 days and - 365 days
Content (required):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
l_absence_type_id = get_context(ABSENCE_TYPE_ID,0) /* get the ABSENCE_TYPE_ID of the user leave */
l_start_date = add_days(IV_START_DATE,-365)
l_end_date = add_days(IV_END_DATE, 365) /* you can get the IV_START_DATE and IV_END_DATE as FF input*/
change_contexts(START_DATE= l_start_date, END_DATE=l_end_date)
(
l_index = ANC_PER_ABS_ENTRS_ABSENCE_ENTRY_ID_ARR.first(-1)
Tagged:
1