Versions Compared

Key

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


Info
titleMinimum Requirements
  • Android App 1.8.1.1

...

Excerpt

Interrupts posting in Pick and adds an extra Header (ImageCapture) Step.

  • Adds an extra ImageCapture step during posting of a pick.
  • The collected image is then saved in Mob Wms Media Queue.
  • In the Mobile Document Queue List, a PostMedia Request will  appear after adding the Header Steps - in this case, after PostPickOrder.

...

To collect an Image in the step, the user will need to use the  plus sign (+) to take a picture and add an optional note before posting.

Example

The following example is made for a planned step (Pick function).

Example: Add header ImageCapture step for Planned function (Pick)

Step

...

1 - Create an header step

Use OnPostPickOrder_OnAddStepsToWarehouseActivityHeader to add an ImageCapture step:

    // Create an ImageCapture header step that interrupts the posting of a pick.
    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Pick", 'OnPostPickOrder_OnAddStepsToWarehouseActivityHeader', '', true, true)]
    localprocedure MyOnPostPickOrder_OnAddStepsToWarehouseActivityHeader(var _OrderValues: Record"MOB Common Element"; _WhseActivityHeader: Record"Warehouse Activity Header"; var _StepsElement: Record"MOB Steps Element")
    begin


        //Already collected, break to avoid adding the same new step indefinitely
        if _OrderValues.HasValue('ImageCapture') then
            exit;

        _StepsElement.Create_ImageCaptureStep(10000, 'ImageCapture', 'Take a Picture');

        _StepsElement.Set_helpLabel('Take a picture of the item');
    end;

Step

...

2 - Handle the header step

  // Handle the step, saving the values in the Mob Wms Media queue.

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Pick", 'OnPostPickOrder_OnBeforePostWarehouseActivityOrder', '', true, true)]

    localprocedure OnPostPickOrder_OnBeforePostWarehouseActivityOrder(var _OrderValues: Record"MOB Common Element"; var _WhseActivityHeader: Record"Warehouse Activity Header")
    var
        MobWmsLanguage: Codeunit"MOB WMS Language";
        MobMedia: Codeunit"MOB WMS Media";
        ImageIdsAndNotes: Text;
    begin
        ImageIdsAndNotes:=_OrderValues.GetValue('ImageCapture', true);

        if ImageIdsAndNotes =''then
            Error(MobWmsLanguage.GetMessage('NO_PICTURE_TO_ATTACH'));

        MobMedia.AddImageToMediaQueue(ImageIdsAndNotes);
    end;


Example: ImageCapture  ImageCapture Step in Pick

Image Removed

Example: The



From BC, go to the Mobile WMS Media Queue page.

Image Added

 The picture and note were saved in Mob Wms Media Queue

...