Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Description
Steps are used to collect additional information on Lines and Orders.
Contents
Table of Contents | ||||
---|---|---|---|---|
|
Where are steps defined
- Planned Functions
- Either "Header Steps" or "Line Steps"
- Standard steps:
- Statically defined in Mobile Configuration File as part of a Workflow
- Statically defined in Mobile Configuration File as part of a Workflow
- Customized steps:
- Dynamically defined in Reference Data
- Either "Header Steps" or "Line Steps"
- Unplanned Functions
- Always dynamically sent on-the-fly from Backend
Steps in Planned functions
Header Steps (Steps on Order posting)
Additional information that is collected when Posting registrations.
This happens only once.
Orders | Step on a Receipt Order |
Header Step Ordering
Line Steps
Additional information that is collected during a line registration
This happens for each and every line.
Order Lines | Step on a Receipt Line |
Steps in Unplanned functions
Steps are used to collect information after a Header has been accepted
See more Unplanned Functions.
Using steps in code
- Templates or Create-functionsAdding steps
All Steps must be assigned a mandatory Id and unique Name that identifies it and then a number of (mostly optional) attributes that defines the behavior of the step.
Attributes are not be the same for every step, but depends on what is being collected.
The editor suggests two kinds of functions:
- Template steps
- Create_TextStep_LotNumber : A text step based on a "template" specifically designed to accept Lot Numbers.
- Create-functions
- Create_TextStep : You must input at least the mandatory properties for the step.
- Set_.... can be used to set additional attributes.
In the editor: Type _steps.create.... to see the wide selection of create- and template-functions.
Template uses Set...-functions aswellSet-functions
Use these to define/overrule attributes from create/template functions.
Commonly used are:
- Set_visible
- Set_optional / Set_locked
- Set_minValue / Set_maxValue
- Set_label
- Set_helpLabel
- ....use the editor to find them all..
See Step Configuration Matrix for all the possibilities.
Image Added
Template uses Set-functions too
Create_TextStep_LotNumber is implemented using the Create_TextStep base-type and then Setting all the necessary attributes.
Create_TextStep(7, 'LotNumber'); // 7 = Id, could be any value but Steps is generally sorted by Id – the Name is actual identifier and must be unique
Set_header(MobWmsLanguage.GetMessage('ITEM') + ' ' + ItemNo + ' - ' + MobWmsLanguage.GetMessage('ENTER_LOT'));
Set_label(MobWmsLanguage.GetMessage('LOT_NO_LABEL') + ':');
Set_helpLabel('');
Set_eanAi(MobToolbox.GetLotNoGS1Ai());
Set_autoForwardAfterScan(true);
Set_optional(false);
Set_visible(true);
Set_labelWidth_WindowsMobile(100);
Set_defaultValue('');
Set_length(50);
... this is exactly how you would create a Step 'from scratch' yourself.
Combining
Tempalte stepsTemplates with Set
....-
functionfunctions
You may do a combination:
- Use the a Template to create a step
- Then override specific attributes of your choice
For example:
Create_DecimalStep_Quantity(5, ItemNo);
Set_minValue(1);