ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

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

Open Magicrevette opened this issue 6 years ago • 5 comments

We are migrating our code from NAV 2018 to BC16.4. In the Table 36 "Sales Header", in the field 27 "Shipment Method Code", in the trigger OnValidate, we need to add a condition to the use of TestStatusOpen. 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 08:10 Magicrevette

Hi @Magicrevette . There will be new a function that returns StatusCheckSuspended, don't miss it.

RomanZanizdra avatar Oct 17 '20 19:10 RomanZanizdra

Ok thank you. But we'll need to add a condition before TestStatusOpen. I don't think it's possible with another function.

Magicrevette avatar Oct 19 '20 07:10 Magicrevette

Hi @Magicrevette . There is a function SuspendStatusCheck you can use. I suppose the code in subscriber will be looking like below or something similar. OnBeforeValidateShipmentCodeHandler(var SalesHeader; var IsHandled) begin if not GetSomeStatus then SuspendStatusCheck(true); end;

RomanZanizdra avatar Oct 19 '20 07:10 RomanZanizdra

In that case it will fit our purpose. Thank you for your time.

Magicrevette avatar Oct 19 '20 09:10 Magicrevette

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 Oct 20 '20 07:10 bc-ghost