Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Reverted from v. 7
Description
Collector steps are define in "Reference Data". Making them static to a degree.
However, often you want the step to have a Default Value or other information related to the current Line.
- In this example we will make a Collector Step on a Line dynamic by adding the relevant "Item No." as Default value and as a Help Text
Note:
- Please start by following a complete example of adding a Collector Step on Line basis.
- Seek inspiration in Codeunit MOB Conf. Tools
Syntax
'CollectorKey{[key][attribute][value]}'
For example:
RegisterExtraInfo','DemoOrderLineExtraInfo{[StepNameAAStepName][PropertyA][ValueA][StepNameBAStepName][PropertyB][ValueB]}
How to enable
Step 1 - Add/Define the collector step in Reference Data
Code Block | ||
---|---|---|
| ||
... // Example of making a step dynamic MobConfTools.RC_Std_Parms(1,'MyTextStep','Enter my text','','Please confirm my text'); MobConfTools.RC_Text_CData(XMLCDataSection,'',20); // Default value = blank because it will be injected dynamically from the Line |
Step 2 - Include the step in a Warehouse functionality like Pick
Code Block | ||
---|---|---|
| ||
IF WhseActHeader.Type IN [WhseActHeader.Type::Pick,WhseActHeader.Type::"Invt. Pick"] THEN MobXMLMgt.AddElement(XMLOrderLine,'RegisterExtraInfo', STRSUBSTNO('DemoOrderLineExtraInfo{[MyTextStep][defaultValue][%1][MyTextStep][helpLabel][We expect "%1"]}',WhseActLinePlace."Item No."), NS_BASE_DATA_MODEL,XMLCreatedNode); |
See also:
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See also:
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Example
Collect an text - Note the dynamic values