What
You can use an action To call any kind of logic in 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.
In the following example, a "PrintXYLabel" action is added to the existing “Receive Line” page.
Example
<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.
In the following example, a “ChangeView” action is added to the existing “Pick Line” page.
Example
<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()”
- The new Registration Type is called ”ChangeView” or "PrintXYLabel" (examples above)
- Modify the code to handle this new Registration Type.