Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Custom subgrid on form causing error on mobile

Posted on by Microsoft Employee

Hi I'm using CRM 2016 online,

I have a custom subgrid with a 1:N relationship between Opportunity and my custom entity. This is for sales to input potential product line items, brand, product type, and estimated revenue. Sales will enter potential items for the opportunity and a total calculated rollup field sums up all the est. revenue they entered in the subgrid. It works fine on PC opportunity entries, but when open opportunities in mobile I get this "error: Cannot read property 'getValue' of null" screenshot below.

Screenshot_5F00_20161116_2D00_151505.png

It doesn't display my subgrid, only the total est. revenue calculated field. Other subgrids OOB works fine eg. stakeholders/competitors. I checked that this custom subgrid is enabled to view on a phone. 

I tried putting it in a separate tab, still didn't work.


Is there a way to fix this and get the subgrid to work on mobile phones? or does sales have to enter these fields on PC only?

Thanks

I'm using a Samsung Galaxy S6 Android. I haven't tested in ios yet.

*This post is locked for comments

  • Guowei_Xu Profile Picture
    Guowei_Xu 407 on at
    RE: Custom subgrid on form causing error on mobile

    Hi Cynthia Y ,

     I have faced the same issue, the custom subgrid  with a 1:N relationship between Opportunity and my custom entity didn't display in my phones.

    I have tried many ways, finally, i fond that the property of custom entity must choose the checkbox of "Availabe on phone" . 

    After that it's done.

  • Hafez Profile Picture
    Hafez 115 on at
    RE: Custom subgrid on form causing error on mobile

    Hi Scott,

    Could you elaborate on this a little further.  the link you provided seems to be broken.

    I customized the Opportunity Form - fields, tabs, section.  The form works just fine.  I have specified certain fields to be visible for Mobile.

    When I run the Mobile Form, I receive a similar error:

    Field: Windows

    Event: Load

    Error: cannot read property value "getvalue".....

    The form has 9 sections.  the sections I want visible in mobile are in between 1 to 9.  The form looks just fine.  All the info I want in the mobile form is present.  the issue is on load it throws the error and clearly customers do not like the error.

    Any ideas?

  • Suggested answer
    ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: Custom subgrid on form causing error on mobile

    When you say 'Custom subgrid' do you mean you have built one using HTML and Javascript?

    Usually the issue when you get cannot read property getValue on the mobile client is because only the first few tabs/sections/fields are displayed and so if your code is referring to that attribute it can't get the value.

    From technet.microsoft.com/.../dn531128.aspx:

    Forms in Dynamics 365 for tablets are limited to 5 tabs (or 75 fields and 10 lists). This limit includes hidden fields.

    Check that the attribute that you are reading is actually on the form due to this limiation.

    Hope this helps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,134 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,928 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans