Versions Compared

Key

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


Info
titleMinimum Requirements
  • Extension version MOB5.33
  • Android App 1.5.9

...

Note

You may validate the current steps value prior to returning new steps. In this case you must use the OnWhseInquiryOnCustomDocumentType event.

If the OnWhseInquiryOnCustomDocumentTypeAsXml event was used for such validation the full response Xml has been generated already and cannot be further modified by this event.



Template

    // [Template]
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Whse. Inquiry", 'OnWhseInquiry_OnAddSteps''', true, true)]
    local procedure OnWhseInquiry_OnAddSteps(_DocumentType: Textvar _RequestValues: Record "MOB NS Request Element"; var _Steps: Record "MOB Steps Element"; var _RegistrationTypeTracking: Textvar _IsHandled: Boolean)
    begin
    end;

Example

        // [Example 1Example 1]
        [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS WhseMOB WMS Whse. Inquiry Inquiry", 'OnWhseInquiry_OnAddSteps', '', true true, true true)]
        procedure Ex01 Ex01_OnWhseInquiry_OnAddSteps(_DocumentType: Text; var _RequestValues: Record "MOB NS Request ElementMOB NS Request Element"; var _Steps: Record "MOB Steps ElementMOB Steps Element")
    var
        RequestValues: Record "MOB NS Request Element" temporary;
    begin
        case _DocumentType of
                begin
        case _DocumentType of
            'ValidateMyLotNumber':
                begin
                                    begin
                    _Steps.Create_TextStep(10, 'MyTextStep1');
                                        _Steps.Set_defaultValue('MyTextDefaultValue1');
                                        _Steps.Set_header('MyTextStep1 MyTextStep1 - ' + _RequestValues.Get_LotNumber());
                       
// Reading value from already collected step



                    _Steps.Create_TextStep(20, 'MyTextStep2');
                                        _Steps.Set_defaultValue('MyTextDefaultValue2');
                                        _Steps.Set_header('MyTextStep2');
                                        exit;
                                end;

                        'ValidateMyQuantity':
                begin
                                    
begin
                    _Steps.Create_TextStep(10, 'MyQtySteps1');
                                        _Steps.Set_defaultValue('MyQtySteps1');
                                        _Steps.Set_header('MyQtySteps1 MyQtySteps1 - ' + format Format(_RequestValues.Get_Quantity()));
                       
// Reading value from already collected step

                    _Steps.Create_TextStep(20, 'MyQtySteps2');
                                        _Steps.Set_defaultValue('MyQtySteps2');
                                        _Steps.Set_header('MyQtySteps2');
                                        exit;
                                end;
                        else
                                exit;
                end;
        end;


Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "example" and label in ("onwhseinquiryoncustomdocumenttypeasxml","onwhseinquiryonaddsteps","onwhseinquiryoncustomdocumenttype")

...