Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Extension of LedgerJournalDP and breakpoints in class not working

(0) ShareShare
ReportReport
Posted on by 216

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");
    }
}

  • nbhatti2001 Profile Picture
    nbhatti2001 216 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.

  • nbhatti2001 Profile Picture
    nbhatti2001 216 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

  • 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.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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.

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 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.

  • Martin Dráb Profile Picture
    Martin Dráb 230,848 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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans