Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

object in debugger shows methods which are not actually the part of that object. How to access them?

Posted on by 1,272

Hi,

I have a SysReportRun object which when watched in the debugger shows many methods related to the actual report data. But when I try to access them or find them using 'SysTest::hasMethod' for that object the system never seems to find those methods(because I can't find them in the AOT aswell). Is there any way to access those methods?

Thanks

Haris.

*This post is locked for comments

  • Martin Dráb Profile Picture
    Martin Dráb 230,214 Most Valuable Professional on at
    RE: object in debugger shows methods which are not actually the part of that object. How to access them?

    I'm sorry, but I can't comment on the methods you expect if you don't tell us anything about them. It's also not clear how it's related to a child of SysReportRun. If the methods are defined in the child, then you already have the answer. If not, the fact that you're using a subclass is likely irrelevant.

    If you want to see what you can do with SysReportRun class, look at its methods. queryRun() may be what you're looking for in the moment,

  • dynamics developer Profile Picture
    dynamics developer 1,272 on at
    RE: object in debugger shows methods which are not actually the part of that object. How to access them?

    Thanks for the reply Martin.

    Sorry cannot give you a concrete example as my clients are using the Dyxon email tool. And the object is basically the tool's object i.e. 'DYX_SysReportRun' which extends the standard 'SysReportRun'.

    But you can help me by telling if there is a way to get the datasource or just say report data using the 'SysReportRun' object?

  • Martin Dráb Profile Picture
    Martin Dráb 230,214 Most Valuable Professional on at
    RE: object in debugger shows methods which are not actually the part of that object. How to access them?

    Can you give us a concrete example?

    Note that methods added in reports are physically defined in SysReportRun class in AOT.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans