Skip to main content

Notifications

Microsoft Dynamics AX forum
Unanswered

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.

  • Martin Dráb Profile Picture
    Martin Dráb 225,000 Super User 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 225,000 Super User 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.

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,682 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,000 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans