Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Use this event to

Excerpt

Populate new Item Cross Reference prior to record being inserted.



Replaced by: MobItemCrossReferenceMgt - OnPostAdhocRegistrationOnItemCrossReference_OnBeforeInsertItemCrossReference  (MOB5.23 or newer)


Template

    // [Template]
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnItemCrossReference_OnBeforeInsertItemCrossReference''', true, true)]
    local procedure OnPostAdhocRegistrationOnItemCrossReference_OnBeforeInsertItemCrossReference(var _RequestValues: Record "MOB NS Request Element"; var _ItemCrossReference: Record "Item Cross Reference")
    begin
    end;

Example

    // [Example] 
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnItemCrossReference_OnBeforeInsertItemCrossReference''', true, true)]
    local procedure MyOnPostAdhocRegistrationOnItemCrossReference_OnBeforeInsertItemCrossReference(var _RequestValues: Record "MOB NS Request Element"; var _ItemCrossReference: Record "Item Cross Reference")
    var
        RegistrationType: Text;
        ItemNo: Text;
        VariantCode: Text;
        UoM: Text;
    begin
        RegistrationType := _RequestValues.GetValue('RegistrationType');
        ItemNo := _RequestValues.GetValue('ItemNumber');
        VariantCode := _RequestValues.GetValue('Variant');
        UoM := _RequestValues.GetValue('UoM');

        _ItemCrossReference.Validate(Description, CopyStr(StrSubstNo('%1 ItemNo%1 Item: %2 Variant: %3 UoM: %4', RegistrationType, ItemNo, VariantCode, UoM)1, MaxStrLen(_ItemCrossReference.Description)));
    end;


Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "example" and label = "OnPostAdhocRegistrationOnItemCrossReference_OnBeforeInsertItemCrossReference"


Version History

Version

Changes

MOB5.17Introduced
MOB5.23Moved to "MOB Item Cross Reference Mgt."