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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Request for Purchase quotation print

(0) ShareShare
ReportReport
Posted on by

Hello

I need to add some coding on the RFQ print. I added my code in the class PurchRFQSendDP in method ProcessReport. Find code sample below. When I run the report, nothing appears on the report.

I run the report through the request quotation form, click on the send button and the report is being printed.

When I tried to debug, it does not go through that class. Can anyone tell me in which class I can add this code.


Any help will be much appreciated.

Many thanks

Regards

Tabrez

 if (queryVendRFQTrans.ItemId)
        {
             select firstonly PurchRFQLine
             index hint LineNumberIdx
             where PurchRFQLine.ItemId == queryVendRFQTrans.ItemId;
        }
        ItemDesc = PurchRFQLine.ItemName;

        if (PurchRFQLine.ItemName == ItemDesc)
        {
         tmpPurchRFQSend.ItemName                  = ItemDesc;
        }
        else
        {
         tmpPurchRFQSend.ItemName                  = ItemDesc + ' - ' + PurchRFQLine.Name;
        }

*This post is locked for comments

I have the same question (0)
  • Jonathan  Halland Profile Picture
    11,310 on at

    Which report in specific, i.e. where in ax are you trying to print from? If you are indeed trying to print this report then remember you will need to do a CIL compile in addition to your code changes

  • Srinath Sundaresan Profile Picture
    510 on at

    Finding which is the rdp class is easy. You can open the ssrs report in visual studio. In the dataset properties, there will be a select query on the data provider class temporary table.

    Please mark this question as answered if it helps.

  • Community Member Profile Picture
    on at

    Hello Jonathan

    The report is PurchPurchaseOrderReport. I have done the compilation and the CIL compile also. Still nothing.

    Thanks to help

    Regards

    Tabrez

  • Community Member Profile Picture
    on at

    Hello Jonathan

    Sorry the report is PurchRFQSend and not PurchPurchaseOrderReport

    Thanks

    Regards

    Tabrez

  • Community Member Profile Picture
    on at

    Hello SrinathS

    I had my code in the same class as in the report. Please see screenshot below

    2015_2D00_05_2D00_18_5F00_094129.jpg

    I have used the method ProcessReport, and when I try to debug, it is does not go through the class itself.

    Thanks to help

    Regards

    Tabrez

  • Suggested answer
    syed baber Profile Picture
    11,633 on at

    Hi Tabrez,

    You can start debugging from the controller class main method. Below is the complete path:

    \Classes\PurchRFQSendController\main

    Add breakpoint in this method, as the code will surely begin from this method, then proceed through to see why the code is not coming into the DP class.

    Please verify and let me know if you have further queries.

    Thanks,

    Baber.

  • Community Member Profile Picture
    on at

    Hello Baber

    I will do so and keep you updated.

    Thanks

    Regards

    Tabrez

  • Community Member Profile Picture
    on at

    Hello Baber

    I have done the debug. It does go through the controller and main but not in the PurchRFQSendDP in method ProcessReport.

    Can you please advise.

    Thanks

    Regards

    Tabrez

  • syed baber Profile Picture
    11,633 on at

    Hi Tabrez,

    To enable debugging for RDP class, you need to perform some extra steps. Have you already configured those in your environment. The details are here

    Thanks,

    Baber.

  • Community Member Profile Picture
    on at

    Hello Baber

    All these steps are configured.

    Please advise

    Regards

    Tabrez

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans