OnGetPhysInvtRecordings_OnAfterSetFromPhysInvtRecordHeader

Use this event to

Populate values in Recordings displayed on the mobile device.

Template

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Phys Invt Recording", 'OnGetPhysInvtRecordings_OnAfterSetFromPhysInvtRecordHeader', '', true, true)]
    local procedure OnGetPhysInvtRecordings_OnAfterSetFromPhysInvtRecordHeader(_PhysInvtRecordHeader: Record "Phys. Invt. Record Header"; var _BaseOrderElement: Record "MOB Ns BaseDataModel Element")
    begin
    end;

Example

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Phys Invt Recording", 'OnGetPhysInvtRecordings_OnAfterSetFromPhysInvtRecordHeader', '', true, true)]
    local procedure MyOnGetPhysInvtRecordings_OnAfterSetFromPhysInvtRecordHeader(_PhysInvtRecordHeader: Record "Phys. Invt. Record Header"; var _BaseOrderElement: Record "MOB Ns BaseDataModel Element")
    begin
        _BaseOrderElement.Set_DisplayLine1('Set from OnGetPhysInvtRecordings_OnAfterSetFromPhysInvtRecordHeader');
        _BaseOrderElement.Set_HeaderValue1(_PhysInvtRecordHeader.FieldCaption("Person Responsible") + ': ' + _PhysInvtRecordHeader."Person Responsible");
    end;

More examples


Version History

VersionChanges
MOB5.19Introduced