Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

I not able to see List of RDP class in report dataset.

(0) ShareShare
ReportReport
Posted on by

HI team,

I not able to see List of RDP class in report dataset.

here is my below code

Contarct class - 

[DataContractAttribute]
class ARP_CustTrans_Contract
{
    TransDate  fromDate, toDate;
    
    [
        DataMemberAttribute('Fromdate'),
        SysOperationLabelAttribute(literalStr("From date")),
        SysOperationControlVisibilityAttribute(true)
    ]
    public TransDate parmFromDate(TransDate _fromDate = fromDate)
    {
        fromDate = _fromDate;
        return fromDate;
    }

    [
        DataMemberAttribute('Todate'),
        SysOperationLabelAttribute(literalStr("To date")),
        SysOperationControlVisibilityAttribute(true)
    ]
    public TransDate parmToDate(TransDate _toDate = toDate)
    {
        toDate = _toDate;
        return toDate;
    }

}

Controller - 

class ARP_CustTrans_Controller extends SrsReportRunController
{
    public static ARP_CustTrans_Controller construct()
    {
        return new ARP_CustTrans_Controller();
    }

    public static void main(Args _args)
    {
        ARP_CustTrans_Controller custTransController = ARP_CustTrans_Controller::construct();
        
        custTransController.parmReportName(ssrsReportStr(ARP_CustTrans, Report));
        custTransController.parmArgs(_args);
        custTransController.parmDialogCaption("Customer report");
        custTransController.startOperation();
    }

}

DP - 

[SRSReportParameterAttribute(classStr(ARP_CustTrans_Contract))]
class ARP_CustTrans_DP extends SrsReportDataProviderPreProcessTempDB
{
    ARP_TmpCustTrans    tmpCustTrans;

    [SRSReportDataSetAttribute(tablestr(ARP_TmpCustTrans))]
    public ARP_TmpCustTrans getTmpCustTrans()
    {
        select * from tmpCustTrans;
        return tmpCustTrans;
    }

    public void processReport()
    {
        ARP_CustTrans_Contract  contract;        
        TransDate               fromDate, toDate;
        CustTrans               custTrans;
                 
        contract = this.parmDataContract() as ARP_CustTrans_Contract;
 
        // Get sales agreement header record from the contract parameter
        fromDate = contract.parmFromDate();
        toDate   = contract.parmToDate();        
        
        while select custTrans
            where custTrans.TransDate >= fromDate
            &&    custTrans.TransDate <= toDate
        {
            if (custTrans)
            {
                tmpCustTrans.AccountNum     = custTrans.AccountNum;
                tmpCustTrans.OrderAccount   = custTrans.OrderAccount;
                tmpCustTrans.TransDate      = custTrans.TransDate;
                tmpCustTrans.PaymTermId     = custTrans.PaymTermId;                
                tmpCustTrans.Txt            = custTrans.Txt;

                tmpCustTrans.insert();
                    
            }

        }
 
    }

}

Report design - 

pastedimage1680594538103v1.png

pastedimage1680594604674v2.png

nothing happened.

I have already build & Sync my model. but still it's happening.

Kindly let me know how we can resolve this.

Pls give me more shed on this.

thanks!

  • Suggested answer
    Komi Siabi Profile Picture
    Komi Siabi 12,759 Most Valuable Professional on at
    RE: I not able to see List of RDP class in report dataset.

    Few things you can do.

    1. Rebuild your project

    2. Restart Visual studio and retry

    3. restart the VM and retry

    4. Build all model with cross reference

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