Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Description

This describes Line steps used in Planned Functions.

You can

...

conditionally update a steps properties like Visible, Default value or Help label. See the complete list of properties here: Step Configuration Matrix


Dynamically Insert Values

Line steps in Planned functions are

...

defined in Reference DataThis makes them static to a degree.

Example

In this example, we will make a Line step

...

dynamic by changing

...

it's properties:


Step 1

Create Steps in "ReferenceData".

Image Modified


 

Using event OnGetReferenceData_OnAddRegistrationCollectorConfigurations

  • We name the configuration key "CustomPickSteps". We name each step like Text or Date step. 
  • You can use any naming.


    // Step 1

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAddRegistrationCollectorConfigurations''', true, true)]
    local procedure OnGetReferenceData_OnAddRegistrationCollectorConfigurations(var _Steps: Record "MOB Steps Element")
    begin
        // Define a key for the step(s)
        _Steps.InitConfigurationKey('

...

CustomPickStep');

        //

...

Create steps and set default values
        _Steps.Create_

...

InformationStep(

...

5'InfoStep''HeaderText''Label''HelpLabel');
    end;


Step 2

Include the step in "...OnAddStepsToAnyLine"-event


Image Modified

 

Use one of these

...

events:

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "onaddstepstoanyline" and label = "step"


    // Step 2

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Pick", 'OnGetPickOrderLines_OnAddStepsToAnyLine''', true, true)]
    local procedure MyOnGetPickOrderLines_OnAddStepsToAnyLine(_RecRef: RecordRefvar _BaseOrderLineElement: Record "MOB Ns BaseDataModel Element")
    var
        WarehouseActivityLine: Record "Warehouse Activity Line";
    begin

...


        if (_RecRef.Number = Database::"Warehouse Activity Line"then begin
            _RecRef.SetTable(WarehouseActivityLine);

            // Overwrite Step values with information from pick line 
            _BaseOrderLineElement.

...

Create_StepsByReferenceDataKey(STRSUBSTNO('

...

CustomPickStep{[InfoStep][helpLabel][

...

Description is:

...

"%1"

...

]}',

...

WarehouseActivityLine."Description"

...

));

...


        end;
    end;


  • Set value "RegisterExtraInfo". 
  • Using this syntax
Code Block
'StepsConfigurationKey { [StepName] [StepProperty] [Value] }

...


  • You must use the same

...

  • key CustomPickStep and

...

  • step name

...

Result on Mobile

When the example code above has been deployed the Mobile WMS App must be restarted to read the new reference data created from the events (is loaded only once on login). By then the result on the mobile device is:


Image Added


See also

Filter by label (Content by label)
showLabelsfalse
max155
spacesTFSK
showSpacefalse
sortmodified
typepage
cqllabel = "onaddstepstoanyline" and label = "example" and space = "TFSK"
labelsMobile

...

Example

Image Removed

An Infostep where "helpLabel" is populated with an Item description

Image Removed

A Date step with default date = 1/1 2030

Image Removed

...