How to use context values on a menu item?
- Glenn Linaa
Use of Centext Values
Available in Mobile WMS for Dynamics AX/365FO
When you want to use context values for a newly added menu item, here is how to set it up.
Setup data
As example, we use Production Orders. We would like to know when the item is located in our warehouse.
Instead of navigating back to the main menu and open page "Locate Item" and then enter the item number to find the on-hand inventory, we want to use the context values of the current page.
In standard Mobile WMS you can configure a lot, and on this page we are missing the menu item "Locate Item" to navigate to when we want to know on-hand inventory.
The first configuration step is to find the page "ReportAsFinished". Click on configurations.
Then select the tab "Menu items". See below image and click "Add Menu Item" button.
Find the menu item you want to add.
Remember to click "Save sorting setup" when you have added a menu item.
Next step is to logout and login again on the mobil device.
When you open the page "Report as finished" you will find the new menu item.
Now select the record you want to find on-hand inventory of.
If it turns out to be like the example below, where item number is empty, we are not sending the value to the filter field.
How do we find the context field and context value?
We turn to document queue for help.
Find the document type used in this example "Lookup" with the content subject "LocateItem". See below image.
Click on the tab "Request" to find the request data. Here you will see the node "ItemNumber", as highlighted on below image.
To make sure we have this value we can verify again from the document queue, is this value not present in the answer we send to the mobile device.
Find the document type "Lookup" and content subject "Report as finished".
Click on the answer button and look for "ItemNumber". As highlighted on below image we don't have that value in the answer.
Now we must add this, and luckily it is quite simple to do.
Again find the page "Report As Finished" and click on "List Design".
Here we add a cell modification where the cell name must match exactly the name we found in the request. "ItemNumber" with capital "I" and a capital "N".
See below image.
The reference field must be selected to match the required value you are looking for. It this example we are looking for an item number, so the reference field must be "ItemId".
Once you have added this and clicked save you are good to go.
No need to logout and login, just update the page and click the menu item "LocateItem".
We can also verify the cell modification by looking at the document queue.
"ItemNumber" has been added to the answer.
On the page: