Transferring values between pages
- Johannes Sebastian Nielsen
- Michael Voigt
Owned by Johannes Sebastian Nielsen
Overview
Using the same field names, transfers data between pages
A page Header fields are populated when field names match a field in the response of the calling page (Example 1 and 2)
- Name your fields the same, and values are transferred
- Name your fields differently and values are NOT transferred
Note: The XML response of a calling page, are available as "ContextValues" in the request on the called page.
This is useful to determine where the user "came from", when handling a XML request.
Utilize the standard names
All standard functions uses the same field and header field names:
OrderBackendId / BackendID: Source Document No.
LineNumber: Source Document Line No.
- Item: Item No.
- And more..
Use these names to get your custom fields populated.
,
What is Request and Response?- Mobile always initiates the communication with a Request
- BC always Responds
Example 1: Planned function Line to Unplanned function Header
Scenario
- The user is viewing "Pick Order Lines"
- User selects the submenu-action "Locate Item"
- "Locate Item" also has a field called "Item" in it's Header
- Item No. is now transferred. Because it exits in both the Order result AND the receiving page header.
- Location is NOT transferred as field "Location" do not exists in the "GetPickOrderLines"-response. Field "Location" can be populated in the response from a customization using the OnGetShipOrderLines_OnAfterSetFromWarehouseShipmentLine event.
Example 2: Transfer Lookup function result to Unplanned function
Scenario
- The user is viewing a result of the "Bin Content" Lookup function
- User selects the action "Unplanned Move"
- "Unplanned Move" also has a field called "Item" in it's Header.
- Item No. is now automatically transferred, because it exits in both the lookup result AND the receiving page header.
- asd
Example 3: Transfer Lookup function result values to an Unplanned function Header (and subsequently to PostAdhocRegistration)
Scenario
- The user is viewing a result of a Lookup i.e."Bin Content"
- User selects a (single) lookup result and is navigated to an Unplanned function
- The current (single) lookup result values can be transferred to the Header of the Unplanned function
- Values are subsequently included in the Unplanned function "PostAdhocRegistration" -request
Add the following change in Mobile Configuration Files
- <onResultSelected enabled="true" navigateTo="MyUnplannedFunction"/> to the <lookupConfiguration.. tag of the Lookup page.
and - <open id="MyUnplannedFunction" title="Edit" icon="mainmenulocateitem" enabled="false"/> to the <actions></actions> tags
Example 4: Transfer Lookup function result values directly to an Unplanned function Action (PostAdhocRegistration)
Scenario
- The user is viewing Lookup result
- User selects Action in the menu
- The current (single) Lookup Result can be included in the Unplanned function "PostAdhocRegistration" -request
Add the following change in Mobile Configuration Files
Add includeInputDataRowInSubmitRequest="true" to the <lookupConfiguration.. tag of the Lookup page.
Explore the Mobile WMS App