ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 5870 OnBefore/OnAfterInitFromTable

Open SteveyN opened this issue 7 years ago • 5 comments

In table 5870 BOM Buffer, there are several InitFrom[table] functions, (like InitFromItem, InitFromRes)

Can we get OnBeforeInitFromTable(var Rec : Record "BOM Buffer"; var Item : Record "Item"; var IsHandled: Boolean) and OnAfterInitFromTable(var Rec : Record "BOM Buffer"; Item : Record "Item")

In each of these InitFrom functions?

SteveyN avatar Oct 24 '19 14:10 SteveyN

Why do you need both? If you want to oveload this function using OnBefore, why do you need OnAfter?

AlexanderYakunin avatar Nov 07 '19 09:11 AlexanderYakunin

We need to OnBefore to make any changes before the checks that conditionally populate fields: For example: our solution uses the Prod Bom No. from a specific Item Variant instead of the Item, it falls back to the Prod Bom on the Item.

The OnAfter is just in case we want to assign any additional fields, or perform additional checks, after the rest of the fields have been assigned

StephenNorfolk-DC avatar Nov 07 '19 10:11 StephenNorfolk-DC

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

bc-ghost avatar Nov 11 '19 12:11 bc-ghost

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

bc-ghost avatar Nov 12 '19 10:11 bc-ghost

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

bc-ghost avatar Nov 12 '19 11:11 bc-ghost