Use this event to
Add steps to be displayed at the mobile device when collecting values for any of the types Quantity, Time and Scrap
Description
Production output may be collected at mobile device by either...
- Double-tap the Output line to collect "all steps" for Quantity, Time AND Scrap
- Register Quanity, Time OR Scrap specifically by using the promoted action at the page.
This event will add steps to all options mentioned above. To add steps to a specific action only, see:
- OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputQuantity
- OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputTime
- OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputScrap
Steps are generally sorted by Id. If your new step should be the last step displayed at all, choose a high Id for your step, i.e. 10000
Due to the Production Output being implemented as Lookup-page each single Registration is posted right away (when Steps for the line is collected). For this reason no events exists to add "header" level steps.
See also: OnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputQuantity
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput', '', true, true)]
local procedure OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput(var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Steps: Record "MOB Steps Element")
begin
end;
Example
// [Example] Add Posting Date step to be displayed for all actions (Quantity, Time and Scrap)
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput', '', true, true)]
local procedure MyOnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutput(var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Steps: Record "MOB Steps Element")
begin
_Steps.Create_DateStep(10000, 'MyPostingDateStep');
_Steps.Set_header('Posting Date');
_Steps.Set_defaultValue(Today());
_Steps.Set_minDate(Today() - 1);
_Steps.Set_maxDate(Today());
end;
More examples
-
Case: Add Posting Date step to Production Consumption and Output — A customer wishes to allow mobile users to specify the posting date when posting Production Consumption and Output from the mobile device.
-
Case: Scan ExpirationDate in custom format — Scan ExpirationDate as custom format YYYYMM when goods is received from any Vendor.
-
How-to: Production Output - Implement a Unit of Measure step — For Items with multiple Unit of Measure codes
Version History
Version | Changes |
---|---|
MOB5.27 | Introduced |