Versions Compared

Key

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


Info
titleRequirement

Android App version 1.5.9

Description

Excerpt

You want to automatically trigger posting for each complete registration. 

...

The user wants to trigger posting after each registration of a line in Receive Order Lines.

Additionally, they want to register less quantity than expected and surpress all warning and posting messages for each registration. 

Behaviour on the device

In this case, when the user has chosen to register less quantity than expected in Receive Order Lines, no warnings will appear. When the user is done registering a line, the line will be posted automatically, without any confirmation message. 

How to enable it

Step 1

...

: Set postingTrigger to "PostAfterEachRegistration"

This requires a change in the application.cfg


Code Block
languagexml
titleChanges in application.cfg
  <page id="ReceiveLines" type="OrderLines" icon="mainmenureceive">
      <title defaultValue="@{PageReceiveOrderLinesTitle}"/>
      <orderLinesConfiguration postingTrigger="PostAfterEachRegistration" suggestQuantity="true" verifySingleScanRegistrations="false" actionOnEmptyList="ClosePage">
        <service id="Receive"/>
        <list listId="OrderLinesWithImages"/>
       <..>
    </page>
  


Step 2

...

: Set UnderDeliveryValidation to "none", using OnGetReceiveOrderLines_OnAfterSetFrom... 

To avoid getting a warning when the user registers less quantity than expected. More information about Under/OverDeliveryValidation


 [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Receive", 'OnGetReceiveOrderLines_OnAfterSetFromWarehouseReceiptLine', '', true, true)]
    localprocedure MyOnGetReceiveOrderLines_OnAfterSetFromWarehouseReceiptLine(_WhseReceiptLine: Record"Warehouse Receipt Line"; var _BaseOrderLineElement: Record"MOB Ns BaseDataModel Element")
    begin
        _BaseOrderLineElement.Set_UnderDeliveryValidation('None');
    end;


Step 3

...

: To supress the Posting confirmation message, use OnPostReceiveOrder_OnAfterPost...

Clear the _ResultMessage


[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS receive", 'OnPostReceiveOrder_OnAfterPostAnyOrder', '', true, true)]
    localprocedure OnPostReceiveOrder_OnAfterPostAnyOrder(var _OrderValues: Record"MOB Common Element"; _RecRef: RecordRef; var _ResultMessage: Text)
    begin
        _ResultMessage:='';
    end;


 

...


 

Filter by label (Content by label)
showLabelsfalse
max90
showSpacefalse
sorttitle
titleAvailable events are:
cqllabel = "bc" and label = "orderlines" and label = "integrationevent" and label in ( "onaftersetfrom" , "onafterpost" )


See also 

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
reversetrue
excerptTypesimple
cqllabel in ( "mobileapp" , "bc" ) and label = "overdeliveryvalidation"

...