Write Your First Fast Formula - Element Input Validation
Hossam Shahin - حُسام شاهين Hossam Shahin - حُسام شاهين
340 subscribers
104 views
3

 Published On Sep 27, 2024

In this session, I guide you through writing your first Fast Formula, focusing on “Element Input Validation.” After covering the basics in the first two sessions, we dive into creating a formula that includes setting a default value for the element entry input value. Watch the video to follow along and enhance your skills!

/* **************************************************************
FORMULA NAME: Defaulting Value for FL06 Travel Allowance
FORMULA TYPE: Element Input Validation
DESCRIPTION: Set default value for the Amount of the Element "FL06 Travel Allowance"
************************************************************** */
/* **************************************************************
Change History: Name: Hossam Shahin Date: 28-Sep-2024
Comments:
************************************************************** */

ALIAS REGULAR_WAGES_RATE_ASG_ENTRY_VALUE AS REGULA_WAGES_RAT

DEFAULT FOR REGULA_WAGES_RAT IS -1

INPUTS ARE Amount

LV_EFFECTIVE_DATE = GET_CONTEXT(EFFECTIVE_DATE,'0001/01/01 00:00:00'(date))

CHANGE_CONTEXTS (DATE_EARNED = LV_EFFECTIVE_DATE)

Amount = REGULA_WAGES_RAT * (0.001)

return Amount

show more

Share/Embed