ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 36 "Sales Header" - OnValidateRequestedDeliveryDateOnBeforeUpdateSalesLinesByFieldNo

Open Magicrevette opened this issue 6 years ago • 2 comments

We are migrating our code from NAV 2018 to BC16.4. In the Table 36 "Sales Header", in the field 5790 "Requested Delivery Date", in the trigger OnValidate, we need to add a condition to the use of UpdateSalesLinesByFieldNo. To do so, we need a IsHandled flag and an event publisher, like this :

image

With this integration event : image

Do you think it could be possible ?

Thank you for your work.

Magicrevette avatar Oct 09 '20 10:10 Magicrevette

Hi @Magicrevette . There is IsHandled pattern directly in UpdateSalesLinesByFieldNo function with ChangedFieldNo parameter, so you can skip this function if check for "Requested Delivery Date" field. Does it fit your needs?

RomanZanizdra avatar Oct 19 '20 09:10 RomanZanizdra

Sorry, I didn't notice. It fits my needs indeed. Thank you for your time.

Magicrevette avatar Oct 19 '20 09:10 Magicrevette