...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Info | ||
---|---|---|
| ||
This event can no longer be used in BC19 or newer. Replaced by: MobItemReferenceMgt - OnSearchItemReferenceOnAfterSetFilters |
Use this event to
Excerpt |
---|
Modify filters used for searching for Item Cross Reference in SearchItemReference procedure |
...
Used by Unplanned Functions
In MOB5.26 24 (or newer) and BC18 (or older): use this event.
In MOB5.24 (or newer) and BC19 (or newer): use event MobItemReferenceMgt - OnSearchItemReferenceOnAfterSetFilters
In MOB5.25 23 (or older) use event event OnSearchItemCrossRefOnAfterSetFilters (MOB5.13-MOB5.23)
...
// [Template]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Item Cross Reference Mgt.", 'OnSearchItemCrossRefOnAfterSetFilters', '', true, true)]
local procedure OnSearchItemCrossRefOnAfterSetFilters(_ScannedBarcode: Code[20]; var _ItemCrossRef: Record "Item Cross Reference")
begin
end;
Example: Change filter on Cross-Reference Type to also include Customer and Vendor references
// [Example]: Change filter on Cross-Reference Type to also include Customer and Vendor references
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Item Cross Reference Mgt.", 'OnSearchItemCrossRefOnAfterSetFilters', '', true, true)]
local procedure MyOnSearchItemCrossRefOnAfterSetFilters(_ScannedBarcode: Code[20]; var _ItemCrossRef: Record "Item Cross Reference")
begin
_ItemCrossRef.SetFilter("Cross-Reference Type", '%1|%2|%3', _ItemCrossRef."Cross-Reference Type"::"Bar Code", _ItemCrossRef."Cross-Reference Type"::Customer, _ItemCrossRef."Cross-Reference Type"::Vendor);
end;
Filter by label (Content by label) showLabels false showSpace false sort title title More examples excerptType simple cql label = "bc" and label = "example" and label = "OnPostAdhocRegistrationOnItemCrossReference_OnBeforeInsertItemCrossReference"
...
Version | Changes |
---|---|
MOB5.13 | Introduced as OnSearchItemCrossRefOnAfterSetFilters (MOB5.13-MOB5.23) |
MOB5.2624 | Moved to new "MOB Item Cross Reference Mgt." |
...