Versions Compared

Key

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

Description

This describes Line steps used in Planned Functions.

...

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

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


Step 2

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

...

    [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', STRSUBSTNOCreate_StepsByReferenceDataKey(STRSUBSTNO('CustomPickStepsCustomPickStep{[InfoStep][helpLabel][Description isDescription is:   "%1"][DateStep][defaultValue][%2][TextStep][defaultValue][%3]}',
                                            WarehouseActivityLineWarehouseActivityLine."Description",                               // Info step
                                            MobToolbox.Date2TextResponseFormat(20300101D),     // Date step
                                            WarehouseActivityLine."Description"));                            // Text step
        end;
    end;


  • Set value "RegisterExtraInfo". 
  • Using this syntax

...

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

Result on Mobile

Image RemovedImage Added


See also

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