Versions Compared

Key

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


Note
titleBefore you proceed, check your NAV Object version

Minimum version 4.03:Perform only Steps 1, 2, 3

Before version 4.03: Please upgrade your obejcts. Else you must perform all steps and modify object code manually

Description

It is useful to view an image of the item to handle, so Mobile can display images.

These functions can display images

  • Locate Item 
    • Show Image (Full view)

  • Order Lines
    • Show Image (Full view)

Requirements

  • Minimum mobile app version 1.3.0
  • Minimum NAV 2013

Keep image size down

  • Images are cached by the app to reduced bandwidth but large images will take longer to download. Keep image size down.


Overview

Table of Contents
maxLevel2
minLevel2
excludeDescription


Step 1 - Set "Max Message Size" for Web Service

On the servier tier administration, SOAP tab.

You must set this property to the highest possible size of image. 5120 = 5 megabyte.

Warning: Failing to increase this value, will result in images not being stored in NAV.


Step 2 - Import images in Items

Import Picture on the relevant Items.


Step 3 - Configure the Mobile App to show Images for desired functions

Ask Tasklet perform this step for you. See Raise a Service Desk Ticket


Modify all Planned pages to use to use the "WithImages" listes.

  • Example: "OrderLinesWithImages" is used instead of "OrderLines"

Pick

Put-away

Receive



Note
titleBefore you proceed: Check your NAV Object version

The following steps are only needed if you are using older NAV objects then version 4.03

Step 3 - Import NAV objects

The following two objects will be create

  • Codeunit 6181391 - MOB WMS Media
  • Codeunit 50011- RunMe Setup MOB WMS Media

  1. Re-Compile the object (Important)
  2. Run the object "RunMe Setup MOB WMS Media"
    1. This will set up Image support, by creating a Mobile Document Type called "GetMedia" pointing to Codeunit 6181391

Step 4 - Enable in NAV code

Warehouse Pick, Put-away and Move

In Codeunit 6181388 - MOB WMS Toolbox and function CreateWhseActLinesResponse


  1. Create a Global variable for the Codeunit Called "MOBWMSMedia" of type "Codeunit" and subtype "MOB WMS Media"
  2. Insert the following snippet


Code Block
languagexml
// MEDIA
MOBWMSMedia.AddItemImageToRequest(WhseActLineTake."Item No.",XMLOrderLine,NS_BASE_DATA_MODEL);
// MEDIA


Warehouse Receipt

In Codeunit 6181372 - MOB WMS Receive and function CreateOrderLinesResponse

  1. Create a Global variable for Codeunit Called "MOBWMSMedia" of type "Codeunit" and Subtype "MOB WMS Media"
  2. Insert the following snippet


Code Block
languagexml
// MEDIA
MOBWMSMedia.AddItemImageToRequest(WhseReceiptLine."Item No.",XMLOrderLine,BaseDataModelNS);
// MEDIA


Purchase Order Receipt

In Codeunit 6181372 - MOB WMS Receive and function CreatePurchaseLinesResponse

  1. Create a Global variable for the Codeunit Called "MOBWMSMedia" of type "Codeunit" and subtype "MOB WMS Media"
  2. Insert the following snippet


Code Block
languagexml
// MEDIA
MOBWMSMedia.AddItemImageToRequest(PurchaseLine."No.",XMLOrderLine,BaseDataModelNS);
// MEDIA



Transfer Order Receipt

In Codeunit 6181372 - MOB WMS Receive and function CreateTransferLine

  1. Create a Global variable for the Codeunit Called "MOBWMSMedia" of type "Codeunit" and subtype "MOB WMS Media"
  2. Insert the following snippet


Code Block
languagexml
// MEDIA
MOBWMSMedia.AddItemImageToRequest(Transferline."Item No.",XMLOrderLine,BaseDataModelNS);
// MEDIA



Locate Item

There are two modifications to be made.

Modification 1

In Codeunit 6181382 - MOB WMS Lookup and function LookupLocateItem

  1. Create a Global variable for the Codeunit Called "MOBWMSMedia" of type "Codeunit" and subtype "MOB WMS Media"
  2. Insert the following snippet


Code Block
languagexml
// MEDIA
MOBWMSMedia.AddItemImageToRequest("Item No.",XMLLookupResponse,MobXMLMgt.GetNodeNSURI(XMLResponseData));
// MEDIA


Modification 2

In Codeunit 6181382 - MOB WMS Lookup and function AddLookupResponse

  1. Create a Global variable for the Codeunit Called "MOBWMSMedia" of type "Codeunit" and subtype "MOB WMS Media"
  2. Insert the following snippet


Code Block
languagexml
// MEDIA
MOBWMSMedia.AddItemImageToRequest(ItemNo,XMLLookupResponse,Namespace);
// MEDIA




Planned Count

In Codeunit 6181376 - MOB WMS Count and function PhysCreateOrderLinesResponse

  1. Create a Global variable for the Codeunit Called "MOBWMSMedia" of type "Codeunit" and subtype "MOB WMS Media"
  2. Insert the following snippet


Code Block
languagexml
// MEDIA
MOBWMSMedia.AddItemImageToRequest(ItemJnlLine."Item No.",XMLOrderLine,BaseDataModelNS);
// MEDIA


Show Image

To show the image in Full Screen, you can enable the "Show Image" action.


Remove the comment tag surrounding the showImage action.


 

A technical description of how Images are requested from the back-end

Images on Order lines

  1. A sourceID XML tag appears in the App Configuration file, application.cfg.
    1. This is named "ItemImage".
  2. When the Mobile Request Document Type "GetXXXOrderLines" is reponded to, an Image tag is included.
    1. This is also named "ItemImage".
    2. The value of the tag is a combination of Item No. and the date and time when the Item / Image was modified.
      This way, whenever an Item is modified, the App will know by the value changing and request the Image again, now receiving an updated image.

  1. When the sourceID matches with the answer to the request, additional requests are made for the images needed. 
    1. One request after the next. These will have the Document Type "GetMedia".


Troubleshooting that no image is being saved

Mobile Doc. Type is missing

The "GetMedia" Mobile document type has not been created.

Solution

Run "Set up Document Types" action from Mobile WMS Setup -page.


Unknown error

Inspect the log files on mobile device for error messages.


Images on order lines


Show Image -action



Shown Image