What
You can use an action To call any kind of logic in ERP , you can use an “Ad-hoc” action.Back-end,
Which data will be transferred to
...
back-end?
- The “Selected line” information
- All (offline) -registrations on the entire Order
How
Step 1: Add the action in Configuration file
Android
To add the action, modify the Application.cfg file.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<adhocRegistration registrationType="PrintXYLabel" id="123" icon="postsuccess" title="Print my XY Label" sendOrderData="true"> <onSuccessfulPost refreshOnSuccess="true"/> </adhocRegistration> |
Insert here:
Windows
To add the action, modify the app.config file.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<adhocRequests> <orderLine> <add id="1" requestDocumentName="PostAdhocRegistration" type="ChangeView" label="changeView" defaultLabelText="Change View" icon="symbol find.bmp" refreshOnSuccess="true" sendOrderData="true" /> </orderLine> </adhocRequests> |
Insert here:
Step 2: Add code to handle action in Backend (NAV/BC)
The call goes into codeunt “TF Mobile WMS Adhoc Registr.” Function “PostAdhocRegistration()”
...