
Hi All,
I have created two tables - 'Entitlement Setup' and 'Entitlements'. In 'Entitlement Setup', there are two fields for Month and Year whereas, in 'Entitlements', I have created a field in which Month and Year values from 'Entitlement Setup' table are needed to be displayed after combining them.
How to achieve this, please provide AL code.
Thanks!
Hi,
You can write a piece of code on the OnInsert trigger of Entitlements table to combine these fields.
Like:
EntitlementSetup.Get();
CombinedField := FORMAT(EntitlementSetup.Month) + FORMAT(EntitlementSetup.Year);
Regards,
Avinash B