...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Use this event to
Excerpt |
---|
Code to be executed prior to posting via standard posting routines. |
...
Note | ||
---|---|---|
| ||
Database transactions in [...]OnBeforeRunWhseActivityPost is committed to database prior to calling standard "Whse.-Activity-Post" function. Your customized code must be structured accordingly. You may subscribe to standard posting events to ensure rollback of your database transactions or trigger events on-after posting, if this is required for your code. |
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Pick", 'OnPostPickOrder_OnBeforeRunWhseActivityPost', '', true, true)]
procedure OnPostPickOrder_OnBeforeRunWhseActivityPost(var _WhseActLinesToPost: Record "Warehouse Activity Line"; var _WhseActPost: Codeunit "Whse.-Activity-Post")
begin
end;
See also:
How-to: Subscribe Subscribing to standard events in BC base app
Example: Print Document on Posting
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Pick", 'OnPostPickOrder_OnBeforeRunWhseActivityPost', '', true, true)]
procedure MyOnPostPickOrder_OnBeforeRunWhseActivityPost(var _WhseActLinesToPost: Record "Warehouse Activity Line"; var _WhseActPost: Codeunit "Whse.-Activity-Post")
begin
_WhseActPost.PrintDocument(true);
end;
Version History
Version | Changes |
---|---|
MOB5.13 | Introduced |
...