web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Problem extending DP class Dynamics 365

(0) ShareShare
ReportReport
Posted on by 657

Hi,

during my adventure to extend the Request for quotation report, I've added 2 extra fields on the tmp (PurchRFQSendTmp) table of the report through extensions. I also added two table methods on the tmp table + hooked up on the 'initFromVendRFQJour' method to provide values of these 2 extra fields.

I made a copy of the RFQSend report as RFQSendExt report in my model.

When I refresh the dataset based on the PurchRFQSendDS class, I get my 2 custom fields.

But I did see that there was a difference with the original dataset in the original report.

The original report has one extra parameter 'RecordId', this is coming from the base class of the contract 'PurchRFQSendContract' which is 'TradeDocumentReportContract'.

For an unknown reason, this parameter is not picked up in my dataset while it should.

Pre D365 I would try to solve this with a compile forward of the 'PurchRFQSendContract' class just to be sure.

But I don't think this is possible in D365 anymore. And even more, I haven't touched the contract class 'PurchRFQSendContract', no extensions are applied on this class.

Does anybody have an idea why this parameter is not picked up?

Regards,

Sven Peeters

*This post is locked for comments

I have the same question (0)
  • Sven Peeters Prodware Profile Picture
    657 on at
    RE: Problem extending DP class Dynamics 365

    Hi Sukrut,

    I don't have the RecordID parameter in the list I'm afraid.

    So there is something wrong with the compile I think.

    Any way to recompile standard code ?

    Regards,

    Sven Peeters

  • Sven Peeters Prodware Profile Picture
    657 on at
    RE: Problem extending DP class Dynamics 365

    Hi Sukrut,

    Issue remains I'm afraid, I recompiled all models via VS.Net.

    I don't think it's a caching issue because the devbox was shutdown yesterday.

    Really no idea why this is happening :-(

    Regards,

    Sven

  • Sven Peeters Prodware Profile Picture
    657 on at
    RE: Problem extending DP class Dynamics 365

    Hi,

    Same result, even tried customizing the existing report but even then I didn't get the parameter. I think i'll have to create a case with MS, will keep this update on the go.

    Regards,

  • Abbas Ithayathullah Profile Picture
    175 on at
    RE: Problem extending DP class Dynamics 365

    Hi Sven,

    Did you changed the PurchRFQSendController class main method with your new report name?

    Br Abbas

  • Sven Peeters Prodware Profile Picture
    657 on at
    RE: Problem extending DP class Dynamics 365

    Hi Abbas, indeed I did but this should have nothing to do with the DataContract or am I wrong?

    The DataContract is linked to the DR class linked to the report, no?

    Regards,

    Sven

  • Abbas Ithayathullah Profile Picture
    175 on at
    RE: Problem extending DP class Dynamics 365

    Hi Sven,

    Ofcourse, Datacontract and Conroller and DP class are related to the report. But you duplicated the report which needs the source of the data.

    Please follow the below link,

    blogs.msdn.microsoft.com/.../how-to-custom-designs-for-business-docs.

    In this, check step no 6, 7 and 10.

    Br Abbas

  • Sven Peeters Prodware Profile Picture
    657 on at
    RE: Problem extending DP class Dynamics 365

    Hi Abbas,

    That's exactly the article that I followed to start this development.

    So yes I did derive a new controller from the existing one and did override main & construct.

    I also extended the 3 menu items linked to this report.

    Sukrut was able to reproduce this easily just by duplicating the report and refreshing the dataset, without any other changes.

    I'm facing other parameter related issues on the SalesInvoice (community.dynamics.com/.../254176), this is driving me a bit nuts.

    Especially because all the code that handles the parameters is in .Net assemblies so no debugging possibel.

    Regards,

    Sven

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans