Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

What is it?

To call any kind of logic in ERP , you can use an “Ad-hoc” action.

What data will be transferred to ERP?

  • The “Selected line” information
  • All (offline) -registrations on the entire Order


Step 1:  Add the action in Configuration file

For 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:

 

 

For 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()”

  1. The new Registration Type is called ”ChangeView” or "PrintXYLabel" (examples above)
  2. Modify the code to handle this new Registration Type.



  • No labels