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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Customized Customer aging report Using COC issues

(1) ShareShare
ReportReport
Posted on by 46
Hi, there hope so you are all well.
I have an issue when I create a Customer aging report using a chain of command. when I extended Dp-class and added my custom field in CustAgingReportTmp Tmp DB then no data showed on my custom field that was added in Tmp DB Like: SalesMan, TotalCreditMax
 
My following Code is:

CustAgingReportDP is the name of the main Dp class & after the extension of this class when I called below mentioned /insertCustAgingReportTmp/ method and I want to show data on the report.  but not show data in hard code & my logic.
 
 
The first way to get data.
[ExtensionOf(classstr(CustAgingReportDP))]
final class CustAgingReportDP_Extension

protected CustAgingReportTmp insertCustAgingReportTmp(boolean _reverseAmountsAndHeadings)

    {

         CustAgingReportTmp custAgingReportTmp = next insertCustAgingReportTmp(_reverseAmountsAndHeadings);    

         custAgingReportTmp.TotalCreditMax = 12;
         custAgingReportTmp.SalesMan = 'aaa';

         return custAgingReportTmp;

    }

 

The Second Way to get data using a table event handler:

class CustAgingReportDP _Eventhandler
{
    [DataEventHandler(tableStr(CustAgingReportTmp), DataEventType::Inserting)]
    public static void CustAgingReportTmp_onInserting(Common sender, DataEventArgs e)
    {
        CustAgingReportTmp   CustAgingReportTmp= sender as CustAgingReportTmp;
 
        custAgingReportTmp.TotalCreditMax = 12;
        custAgingReportTmp.SalesMan = 'aaa';
    }
}
 
Note:
So please check it out, and help me. how to get data using the COC method & changing customer requirements report.

 

Thanks!

Regards:
Ahmad Hassan.

I have the same question (0)
  • Suggested answer
    Komi Siabi Profile Picture
    13,190 Most Valuable Professional on at
    Hello Ahmad, 
     
    Could you please confirm that, your new design is what is showing? If yes, have you deployed the report?
     
  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at
     Hi Ahmad, As Komi mentioned, please ensure that your new report design is executed and SalesManTotalCreditMax fields are displayed in your report. If displaying and you have already debugged the code and values are populating correctly from code level, then try resetting usage data and restarting SQL Server reporting Service.
  • Ahmad0751 Profile Picture
    46 on at
    Yes my new design and deployed it. build and sync, but not showing data in these field.
     
    Thanks!
    Regards:
    Ahmad Hassan,
  • Suggested answer
    Ahmad0751 Profile Picture
    46 on at
    Hi Mohit Rampal,
    I think so you can't understand my question my question is how to get the system default method & change some logic as per user requirements, because I try multiple time different method hit that are use in system main Dp class like: CustAgingReportDP,  but data not show in my customized fields.

    any one help me??
     
    Thanks!
  • Verified answer
    Ahmad0751 Profile Picture
    46 on at
    Thanks to all for my help. 👍😍

    get a point and solved it. missing these lines after added solved it and show record on report.
    • custAgingReportTmp.clear();
    • custAgingReportTmp.insert();
     
    [ExtensionOf(classstr(CustAgingReportDP))]
    final class CustAgingReportDP_Extension

    protected CustAgingReportTmp insertCustAgingReportTmp(boolean _reverseAmountsAndHeadings)

        {

              

             CustAgingReportTmp custAgingReportTmp = next insertCustAgingReportTmp(_reverseAmountsAndHeadings);    
            // custAgingReportTmp.clear();  // this line missed after R&D then added these lines
             custAgingReportTmp.TotalCreditMax = 12;
             custAgingReportTmp.SalesMan = 'aaa';

            // custAgingReportTmp.insert(); // this line missed after R&D then added these lines

             return custAgingReportTmp;

        }

     

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 590 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 349

#3
Diego Mancassola Profile Picture

Diego Mancassola 263

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans