Notifications
Announcements
No record found.
Hello Everyone,
I am Customizing Customer account statement report whichis in AR Module.
And here Trying to Duplicate the "CustAccountStatementIntDP" class in my project and it is giving me error That is : " The type 'CustAccountStatementMonitor' of the member variable 'monitor' is internal to Model 'Foundation' and is not accessible from model 'MyModel'.
please give any idea to solve this Issue.
Hi Ganesh,
CustAccountStatementMonitor is internal class. Internal class will be accessible inside the models only. You cannot refer to that class in your custom models.
Workaround will be you need to implement the same logic in the class CustAccountStatementMonitor in your custom model. Refer the custom class in the report instead of standard one.
Thanks,
Girish S.
Thank You Girish It works .
Remember, possible changes to the standard class you are copying will create differences between the copy and the original.
Maybe in your case its perfect solution but in general you must look for possible extensible points
Yes exactly, but can you provide some ideas on extending the internal classes. It will be useful.
Girish S
We have an verfied answer and I'm accepting that answer too
But I don't see community as an environment where only case-based answers are given. People learn ax from here.
I also thought about my junoirs while writing my answer. If they start copying every internal class when they read the answer, we'll have a serious headache.
In the first step, they have to see if the code goes through a non-internal class and an extension will work at this point.(I accept that it is not necessary for this question)
Yes ergun sahin ,
Actually I am also a Fresher right now and there is lot of things to learn in Ax.
and through this community I got lot of help to solve the issue and to learn the Ax.
And in this Example i cant use the Dp class extension bcoz of that internal class.
so i had to copy Standard Class.
Thank You.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 664 Most Valuable Professional
André Arnaud de Cal... 522 Super User 2025 Season 2
Sohaib Cheema 303 User Group Leader