ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 5878 Phys. Invt. Record Line - field20 - OnValidate "OnValidateItemNoBeforeSetBinCode"
Can we please get the following event?
field(20; "Item No."; Code[20])
{
Caption = 'Item No.';
TableRelation = Item;
trigger OnValidate()
var
TempPhysInvtRecordLine: Record "Phys. Invt. Record Line" temporary;
begin
...
"Date Recorded" := PhysInvtRecordHeader."Date Recorded";
"Time Recorded" := PhysInvtRecordHeader."Time Recorded";
"Person Recorded" := PhysInvtRecordHeader."Person Recorded";
"Location Code" := PhysInvtRecordHeader."Location Code";
IsHandled := false;
OnValidateItemNoBeforeSetBinCode(Rec, PhysInvtRecordHeader, IsHandled); <-- NEW EVENT
if not IsHandled then begin
"Bin Code" := PhysInvtRecordHeader."Bin Code";
end;
"Use Item Tracking" := PhysInvtTrackingMgt.SuggestUseTrackingLines(Item);
GetShelfNo();
end;
}
[IntegrationEvent(false, false)]
local procedure OnValidateItemNoBeforeSetBinCode(PhysInvtRecordLine: Record "Phys. Invt. Record Line"; PhysInvtRecordHeader: Record "Phys. Invt. Record Header"; var IsHandled: Boolean)
begin
end;
Hi,
Is it ok for you to use existing event OnAfterValidateItemNo?
Rgds, Oleg.
Thank you for your comment. Yes, we can also solve it via the suggested event.