web
You’re offline. This is a read only version of the page.
close
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 928

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? 

I have the same question (0)
  • Khurshid Wali Profile Picture
    928 on at

    I need help!

  • Suggested answer
    Fangyuan Hou Profile Picture
    on at

    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
    928 on at

    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

    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
    928 on at

    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

  • Fangyuan Hou Profile Picture
    on at

    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

  • AhmadHammoud Profile Picture
    250 on at

    Were you able to resolve this issue ?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans