...
The code above will add a new entry to Reference Data, identified by new Key "SendToPickRobotHeader".
Step 2:
...
Add new page
...
Next, our new configuration header "SendToPickRobotHeader" needs to be associated with a new page in application.cfg. The type="UnplannedItemRegistration" (qua existing Document Type setup) will trigger the handler codeunit "MOB WMS Adhoc Registr.". The SUBMIT-button for the page is associated to new RegistrationType type="SendToPickRobotRegistrationType".
Modify the Mobile Configuration File
Code Block | ||
---|---|---|
| ||
<page id="SendToPickRobot" type="UnplannedItemRegistration" icon=""> <title defaultValue="Send To Robot"/> <unplannedItemRegistrationConfiguration type="SendToPickRobotRegistrationType" useRegistrationCollector="false"> <header configurationKey="SendToPickRobotHeader" automaticAcceptAfterLastScan="true"/> </unplannedItemRegistrationConfiguration> </page> |
Step 3: Add action
...
The new "Send To Robot" action is added to the existing PickLines-page in application.cfg – this
This will associate the action to the new page we created above. The entire page is shown below, but only this line is new:
Add this line to "PickLines"-pagen.
<open id="SendToPickRobot" icon="" title="Send To Robot" />
Modify the Mobile Configuration File
Code Block | ||
---|---|---|
| ||
<page id="PickLines" type="OrderLines" icon="mainmenupick"> <title defaultValue="@{PagePickOrderLinesTitle}"/> <orderLinesConfiguration> <service id="Pick"/> <list listId="OrderLinesWithImages"/> <viewRegistrations title="@{OrderLinesRegistrationMenuItem}" navigateTo="ViewRegistrations" enabled="true"/> <deleteOrderRegistrations title="@{OrderLinesDeleteAllOrderRegistrationsMenuItem}" enabled="true"/> <totePicking allowManualSelection="true"> <currentTote show="true" useLabelPrefix="false"/> </totePicking> <scanToSelectBehaviour gs1SearchTerm="Item" behaviour="Auto"/> </orderLinesConfiguration> <actions> <showImage id="1" enabled="true" imageProperty="ItemImage" title="@{MenuItemShowImageTitle}"/> <open id="SendToPickRobot" icon="" title="Send To Robot" /> </actions> </page> |
...
Step 4: Handle new RegistrationType in codeunit "MOB WMS Adhoc Registr."
The type="UnplannedItemRegistration" (qua existing Document Type setup) will trigger the handler codeunit "MOB WMS Adhoc Registr.".
The SUBMIT-button for the page is associated to new RegistrationType type="SendToPickRobotRegistrationType".
As per our "Send To Robot"-page defnition the submit button will submit a DocumentType='PostAdhocRegistration', RegistrationType='SendToPickRobotRegistrationType' request.
...