WHS Mobile detour not loading fields

WHS Mobile detour not loading fields

Written by Iván Blasco on Oct 1st, 2022 Views Report Post

Mobile device steps in Dynamics 365 for Finance and Operations allow us to create detours for each step. In order to make these steps fast and easy to use for the warehouse workers the detours can pass and receive data between each other, to make use of it, you must select which Fields the origin step is going to pass to the detour step, and/or which Fields the detour step is going to pass back to the origin.

But what happens if you created a new Mobile device step and the fields are not loading? Or if its a standard step but no fields are showing?

The first step to fix this issue is reloading the table that contains the fields of each step:

WHSMobileAppFlowTable

To refresh this table, we will make use of a standard button in the Mobile device steps form:

Untitled.png

Once the button has run, we should start seeing the fields in each step. If that's not the case and if it's a new device step that you developed then you should add the following extensions:

  1. Create a class named: WHSMobileAppFlow<NameOfYourStep> that extends from WHSMobileAppFlow

  2. Implement the method initValues() adding the fields and their respective steps

As an example:

[WHSWorkExecuteMode(WHSWorkExecuteMode::ProductLabel_CG)]
final class WHSMobileAppFlowProductLabel_CG extends WHSMobileAppFlow
{
    #WHSRF
    protected void initValues()
    {
        this.addStep(#LoadId);
        this.addStep(#ItemId);
        this.addStep(#PONum);

        this.addAvailableField(extendedTypeNum(WHSLoadId));
        this.addAvailableField(extendedTypeNum(InventInventItemSearchItem));
        this.addAvailableField(extendedTypeNum(PurchId));
    }

}

Build again and press the previous button in the Mobile device steps form.

Important note: Detours do NOT work in the Browser WHS Emulator, to test them you should use a real mobile device or the Warehouse Management mobile app

Buy Me A Coffee ivanblasco

Comments (0)