Versions Compared

Key

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

What is it

Collect additional information on Header basis (alternative to Line level).

This information is collected when a document is posted. This happens after the line information has been registered.


Example

I.e. when posting a Receive order, an Delivery Note is collected as standard.

How to use it

Step 1: Collecting additional information on Posting

Below is sample code for collection two additional Text Steps.


Option 1: You are using Warehouse Documents

Insert the following code block in Function "CreateWhseActLinesResponse" in Codeunit 6181388 WMS Toolbox


Option 2: You are Picking/Receiving directly on Orders

Insert the following code block in the respective functional Codeunit (Receive,Pick etc.)

...

Code Block
languagevb
titleBlock 1: Codeunit 6181388 WMS Toolbox
// >>>> CUSTOM HEADER STEPS

// Add the order level registration configuration
// Add the <registrationCollectorConfiguration> element
MobXMLMgt.AddElement(XMLResponseData,                             // Add to this Node
                     'registrationCollectorConfiguration',        // Name
                     '',                                          // Text
                     XMLResultDoc.DocumentElement.NamespaceURI,   // NameSpace
                     XMLRegCollectorConfiguration);               // New created node

// Add the <steps> element to the <registrationCollectorConfiguration>
MobXMLMgt.AddElement(XMLRegCollectorConfiguration,'steps','',XMLResultDoc.DocumentElement.NamespaceURI,XMLSteps);
// Init collector parameters
MobConfTools.RC_Std_Parms(1,                   // ID
                          'Text1',             // Name
                          'Enter some data',   // Header
                          'Data',              // Label
                          '');                 // Help Label
MobConfTools.RC_Text_XmlNode(XMLSteps,'',20);
MobConfTools.RC_Std_Parms(2,                   // ID
                          'Text2',             // Name
                          'Enter more data',   // Header
                          'More data',         // Label
                          '');                 // Help Label
// Create collector XML-Node
MobConfTools.RC_Text_XmlNode(XMLSteps,'',20);

// <<<< CUSTOM HEADER STEPS



Step 2: Handle the collected data

Code Block
languagexml
titleCodeunit 6181374 WMS Pick
// >>>> CUSTOM HEADER STEPS

MobXMLMgt.GetAttribute(XMLOrderNode,'Text1',AttributeValue);
MyText1Variable := AttributeValue;


MobXMLMgt.GetAttribute(XMLOrderNode,'Text2',AttributeValue);
MyText2Variable := AttributeValue;

// << HEADER STEP

...