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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Extension of LedgerJournalDP and breakpoints in class not working

(0) ShareShare
ReportReport
Posted on by 222

Hi,

I have worked with different report extensions and they are working fine. But today I get chance to work with LedgerJournalDP and unfortunatly its estension is not working. I tried to put break points in class LedgerJournalDP but they are also not working. I have load all symbols and breakpoint get red, but not worked. 

pastedimage1683723208658v1.png

 Actually I need to make some changes in Payment Journal print. Please help if I am making some mistake. Here is the extension code. The code is just specimen.

[ExtensionOf(classStr(LedgerJournalDP))]
final class My_LedgerJournalDP_Extension
{
    public void processReport()    
    {        
        next processReport();
        ;
        Info("I am here to work further");
    }
}

I have the same question (0)
  • Martin Dráb Profile Picture
    236,955 Most Valuable Professional on at
    RE: Extension of LedgerJournalDP and breakpoints in class not working

    There may be several reasons for it. For example, maybe the report executes in a batch but you have the debugger attached to IIS/IISExpress instead of Batch.exe. Or maybe you're running a report that uses a different DP class.

  • Mohit Rampal Profile Picture
    12,563 Moderator on at
    RE: Extension of LedgerJournalDP and breakpoints in class not working

    Hi, Your code looks good. Have you checked if breakpoint hits for standard method process report. Also, make sure you extension class is compiled successfully.

    If standard method is not hitting then it's not extension issue.

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Extension of LedgerJournalDP and breakpoints in class not working

    Hi Nadeem,

    You can go ahead and use onInserting event handler of the table, if you want to change the data or insert the data to new fields.

    Thanks,

    Girish S.

  • SARFARAZ AHMED MUFTI Profile Picture
    32 on at
    RE: Extension of LedgerJournalDP and breakpoints in class not working

    Hi,

    Your COC looks good.  This is the debugger issue so you need to restart IIS express and then restart VS then attached again the debugger.

  • nbhatti2001 Profile Picture
    222 on at
    RE: Extension of LedgerJournalDP and breakpoints in class not working

    Hi Martin,

    Debugger is working fine. Vendor payment journal and Customer payment journal sharing same output menu "LedgerJournal". When I try to test with Customer Payment Journal the breakpoint and extension is working fine. But with Vendor Payment Journal its not working. Its still giving tough time and I have to customize the vendor payment journal print so, I am trying to figure it out.

    Thanks

  • nbhatti2001 Profile Picture
    222 on at
    RE: Extension of LedgerJournalDP and breakpoints in class not working

    Hi All,

    It was my missing, actually Vendor payment journal  form was customized. So, the orignal menu was not working. When I check the customized form menu it was refereing new customized menu item.

    May be, because of this post, someone can get the advantage and can save your time.

    Thanks.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 580 Most Valuable Professional

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 554

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans