Here is small code snippet to fetch the Start and End Date field values entered in the front end. This will be useful if there is need to validate the expense lines and check the expense start and end dates. There is standard hook package AP_WEB_CUST_DFLEX_PKG which provides custom procedure CustomValidateLine to validate the expense lines.
Declare
l_expense_start_date DATE;
l_expense_end_date DATE;
Begin
l_expense_start_date :=
fnd_date.canonical_to_date
(AP_WEB_DFLEX_PKG.GetCustomFieldValue('Start Date',
p_custom_fields_array
)
);
l_expense_end_date :=
fnd_date.canonical_to_date
(AP_WEB_DFLEX_PKG.GetCustomFieldValue('End Date',
p_custom_fields_array
)
);
End;
/
Declare
l_expense_start_date DATE;
l_expense_end_date DATE;
Begin
l_expense_start_date :=
fnd_date.canonical_to_date
(AP_WEB_DFLEX_PKG.GetCustomFieldValue('Start Date',
p_custom_fields_array
)
);
l_expense_end_date :=
fnd_date.canonical_to_date
(AP_WEB_DFLEX_PKG.GetCustomFieldValue('End Date',
p_custom_fields_array
)
);
End;
/
No comments:
Post a Comment