Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Ax 2012 Ep Loading Information Issue

(0) ShareShare
ReportReport
Posted on by 926

Hello Everyone,

I have customized ExpTrans form to add expense directly to a single page instead of multiple pages. In this custom page after adding few rows by searching ExpCostType Lookup it stuck in loading information.

When I check console from "Chrome inspect window", I found that exception was thrown by GridView.js that is "Uncaught Typeerror: Cannot read property 'getAttribute'"

5736.Screenshot_5F00_1.jpg

After drill down to line 24 of GridView.js

I found this code.

8816.Screenshot_5F00_2.jpg

Somehow it is not loading this attribute "bodyscrollenabled" before this call.

How to fix this issue? Any help would be appreciated? 

  • AhmadHammoud Profile Picture
    250 on at
    RE: Ax 2012 Ep Loading Information Issue

    Were you able to resolve this issue ?

  • Fangyuan Hou Profile Picture
    on at
    RE: Ax 2012 Ep Loading Information Issue

    Adding If(body) may not resolve the issue here because the issue seems not run the code above if we see from the call stack.

    You can learn from w3schools about how to debug JavaScript.

    www.w3schools.com/.../js_debugging.asp

  • Khurshid Wali Profile Picture
    926 on at
    RE: Ax 2012 Ep Loading Information Issue

    Thank You Fangyuan Hou for Reply.

    I think This code should be there. If(body)

    pastedimage1599036078866v1.png

    .

    How to debug it. I don't have access to Sharepoint and Lookup code.

    This error arises when I click search button on the Lookup button after few postbacks.

    regards,

    Khurshid wali

  • Suggested answer
    Fangyuan Hou Profile Picture
    on at
    RE: Ax 2012 Ep Loading Information Issue

    Hi Khurshid,

    As this is customization related, the issue was "table" object is not yet initialized when the method gets called. You may need to have a debug on the JS code and change your code. 

  • Khurshid Wali Profile Picture
    926 on at
    RE: Ax 2012 Ep Loading Information Issue

    Thank you, Fangyuan Hou,


    Kindly suggest what should I do now?


    Ticket to Microsoft or change EPGridView code Or any other way to bypass this via web control page load code?
    regards,
    Khurshid Wali

  • Suggested answer
    Fangyuan Hou Profile Picture
    on at
    RE: Ax 2012 Ep Loading Information Issue

    Hi Khurshid,

    The error occurs because the "table" object is not yet loaded when the method gets called, before call the GetTableBody, would you please check if the table object is initialized.

    In our demo code on EPGridView, we checked table object before call the GetTableBody.

    pastedimage1597790281679v1.png

  • Khurshid Wali Profile Picture
    926 on at
    RE: Ax 2012 Ep Loading Information Issue

    I need help!

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,202 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans