Use this event to
Excerpt |
---|
Modify properties for any single step for existing Unplanned Functions. |
...
Description
This event is executed once for every step added from standard Adhoc DocumentTypes as well as custom Adhoc DocumentTypes.
You may use this event to change any property of the step or hide the step.
Template
...
Use this event to
Excerpt |
---|
Modify properties for any single step for existing Unplanned Functions. |
See also: OnGetRegistrationConfiguration_OnAddSteps
Description
This event is executed once for every step added from standard Adhoc DocumentTypes as well as custom Adhoc DocumentTypes.
You may use this event to change any property of the step or hide the step.
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfiguration_OnAfterAddStep', '', true, true)]
procedure OnGetRegistrationConfiguration_OnAfterAddStep(_RegistrationType: Text; var _HeaderFieldValues: Record "MOB NS Request Element"; var _Step: Record "MOB Steps Element")
begin
end;
Example 1 - Hide steps on Item Dimension
Example 2 - Modify list step values on Unplanned Count
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Example 1 - Hide steps
// Get RegistrationConfiguration for "Item Dimensions" – hide Length, Width and Height steps
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfiguration_OnAfterAddStep', '', true, true)]
local procedure MyOnGetRegistrationConfiguration_OnAfterAddStep(_RegistrationType: Text; var _HeaderFieldValues: Record "MOB NS Request Element"; var _Step: Record "MOB Steps Element")
var
MobWmsToolbox: Codeunit "MOB WMS Toolbox";
begin
if _RegistrationType <> MobWmsToolbox."CONST::ItemDimensions"() then
exit;
with _Step do
if Get_name() in ['Length', 'Width', 'Height'] then
Set_visible(false);
end;
Example 2 - Modify list step values
...
Example 3 - Modify FastForwardMode on Unplanned Count
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...