Solved

Issue with displaying Inventory ID in mobile app

  • 12 February 2021
  • 10 replies
  • 256 views

Userlevel 2
Badge

I cannot figure out why the Inventory ID field in the mobile app is showing as the Inventory ID description, but on the GI it shows correctly. Anyone have any ideas?

 

icon

Best answer by Irina 16 February 2021, 16:52

View original

10 replies

Userlevel 7
Badge +7

Hello @stacy16,

GIs do not define the mobile app data model.

This is mobile app behavior by design and for all selectors the format of ID feilds set as Description.

You need to customize the mobile file and change the selector display format as described in the following help article, see the selectorDisplayFormat attribute.

For the field in question it is set as Description, you can change it to KeyDescription or just Key to have the ID or ID and Description.

Userlevel 2
Badge

Hi @Irina !

Thank you so much!

how do I access the mobile file in my customizations?

Is it here? And if so which file do i need to be in?

 

Userlevel 7
Badge +7

Hello @stacy16,

Please refer to the To Update a Screen of a Mobile App help article or T400 Customization of Mobile Application: Basic 2019 R2 course.

Userlevel 2
Badge

I have looked in both of these places and i am not figuring this out :/

Where do I find where to change this to “key”. 

The help instructions and training is very confusing to me. 

Userlevel 7
Badge +7
  1. Refer to the To Update a Screen of a Mobile App help article for steps to open Update: SO301000 Sales Orders page of the Customization Project Editor.
  2. Find the code related to InventoryID selectorDisplayFormat attribute. 

     

  3. Implement your code using Mobile Site Map Definition Language (MSDL) in the Commands area of the Update page. Basically, you will need to rewrite (update) code presented now. For example, see Lesson 4.1: Updating a Screen in the T400 Customization of Mobile Application: Basic 2019 R2 course. In this exact case, you will need to update container, layout and field. 
    update screen SO301000 {
    update container "Allocations" {
    update layout "AllocInventoryRow" {
    update field "InventoryID" {
    forceIsVisible = True
    selectorDisplayFormat = Key
    }
    }
    }
    }

     

  4. Save changes. Make sure that Result is changed: 
  5. Publish project.

I would strongly suggest passing T400 course to get used to mobile app customization or consult developers before rolling out any changes on production.

Userlevel 2
Badge

Okay so i did the training and I also did what you had suggested however it is still showing the descriptions as the inventory ID. 

Is this because i did it by adding the inquiry from my Acumatica instance?

 

I tried adding the Inventory summary screen to get my on hand quantities to show, however it is giving me an error stating” Site map description does not have primary container”

Userlevel 7
Badge +7

Okay so i did the training and I also did what you had suggested however it is still showing the descriptions as the inventory ID. 

Is this because i did it by adding the inquiry from my Acumatica instance?

 

I tried adding the Inventory summary screen to get my on hand quantities to show, however it is giving me an error stating” Site map description does not have primary container”

If you will take a closer look, you will see that my example is for the InventoryID field in the Allocations container. You need to update the DocumentDetails container.

Userlevel 7
Badge +7

Please disregard the previous comment.

You’re trying to adjust generic inquiry, and I provided instructions on how to update the Sales Order entry form itself.

Userlevel 7
Badge +7

Here is the GI example. Notice Expose to the Mobile App check box disabled and captions for fields are set.

In a customization, this screen is added as follows. See that fields using captions, not data fields names: 

Last, we need to show it on the mobile Site Map:

The result is:

Userlevel 2
Badge

Perfect! It worked!

Thank you so much! :)

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2022  Acumatica, Inc. All rights reserved