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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

WANT TO RUN THE SSRS REPORT WITHOUT FILTER USING RDP CLASS

(0) ShareShare
ReportReport
Posted on by 371

to get the cust account detail without using the filter ....

as i write the below code it working fine for filter but when i select the blank customer account and sales id it could not display anything

[SysEntryPointAttribute]
public void processReport()
{
SalesTable SalesTable;
CustTable CustTable;

AMYcustcontract contract;
contract = this.parmDataContract() as AMYcustcontract;
while select SalesTable
where SalesTable.CustAccount == contract.paramcustaccount()
&& SalesTable.SalesId == contract.paramSalesId()

{
AMYcust_Temp.clear();

AMYcust_Temp.CustAccount = SalesTable.CustAccount;

AMYcust_Temp.LogisticsDeliveryName = SalesTable.DeliveryName;
AMYcust_Temp.SalesId = SalesTable.SalesId;
AMYcust_Temp.VATNumJournal = SalesTable.VATNum;

select CustTable where CustTable.AccountNum == SalesTable.CustAccount;

AMYcust_Temp.CustCreditMaxMST = CustTable.CreditMax;


AMYcust_Temp.insert();
}
}

this is for filter code 

*This post is locked for comments

I have the same question (0)
  • CU02060633-1 Profile Picture
    371 on at

    i donot want to keep the range this code is ruuning when using filter but i want to know that in this statment what i write then without filtering it fatch the whole table data

  • CU02060633-1 Profile Picture
    371 on at

    Ok @crispin....its solved

    [SysEntryPointAttribute]

    public void processReport()

    {          

    SalesTable         SalesTable;

    CustTable          CustTable;

    CustAccount        CustAccount;

    SalesId            SalesId;

    CustCreditMaxMST   CreditMax;

    AMYcustcontract  contract;

    contract = this.parmDataContract(); //as AMYcustcontract;

       SalesId = contract.paramSalesId();

       CustAccount = contract.paramcustaccount();

    if(CustAccount!="" && SalesId!="")

           {

                select SalesTable where SalesTable.SalesId == SalesId  

                                     && SalesTable.CustAccount == CustAccount

               join CustTable where CustTable.AccountNum == SalesTable.CustAccount;

               {

    AMYcust_Temp.CustCreditMaxMST = CustTable.creditmax;

    AMYcust_Temp.CustAccount = SalesTable.CustAccount;

    AMYcust_Temp.LogisticsDeliveryName = SalesTable.DeliveryName;

    AMYcust_Temp.SalesId               = SalesTable.SalesId;

    AMYcust_Temp.VATNumJournal         = SalesTable.VATNum;

      AMYcust_Temp.insert();

       }

       }

       else

       {

         while select SalesTable join CustTable where CustTable.AccountNum == SalesTable.CustAccount

           {

    AMYcust_Temp.CustCreditMaxMST = CustTable.creditmax;          

    AMYcust_Temp.CustAccount = SalesTable.CustAccount;

    AMYcust_Temp.LogisticsDeliveryName = SalesTable.DeliveryName;

    AMYcust_Temp.SalesId               = SalesTable.SalesId;

    AMYcust_Temp.VATNumJournal         = SalesTable.VATNum;

      AMYcust_Temp.insert();

       }

               }

    }    

    this is the code i use

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans