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 set Default Value or Help Label etc. based on some conditions.

Dynamically Insert Values

Line steps in Planned functions are define in Reference DataThis makes them static to a degree.

Example

In this example we will make a step more dynamic by changing values on it, using "RegisterExtraInfo".


Step 1


...

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.


    [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('CustomPickSteps');

        // Create steps and set default values
        _Steps.Create_TextStep(35'TextStep''HeaderText');
        _Steps.Create_DateStep(45'DateStep''HeaderText');
        _Steps.Create_InformationStep(55'InfoStep''HeaderText''Label''HelpLabel');
    end;


Step 2

...


Image Modified

 

Use one of these event:

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



    [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
        _BaseOrderLineElement.Create_StepsByReferenceDataKey('CustomPickSteps');

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

            // Overwrite Step values with information from pick line 
            _BaseOrderLineElement.SetValue('RegisterExtraInfo', STRSUBSTNO('CustomPickSteps{[InfoStep][helpLabel][Description is: "%1"][DateStep][defaultValue][%2][TextStep][defaultValue][%3]}',
                                            WarehouseActivityLine."Description",                               // Info step
                                            MobToolbox.Date2TextResponseFormat(20300101D),     // Date step
                                            WarehouseActivityLine."Description"));                            // Text step
        end;
    end;



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


  • Tip: You must use the same "configurationkey" and "step name" that you choose in the 1st step.


Result on Mobile

Image Added


See also

Filter by label (Content by label)
showLabelsfalse
max155
spacesTFSK
showSpacefalse
sortmodified
typepage
cqllabel = "onaddstepstoanyline" 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

...