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 :
Finance | Project Operations, Human Resources, ...
Answered

Update Table field after RDP report run successfully

(0) ShareShare
ReportReport
Posted on by

Hi every one,

I need to know how to ensure that RDP report is ran successfully,Actually i have to update table field if report ran and view comes successfully.I wrote code after start operation,but i don't think so it works fine.It updates table field even when view does not come due to an reason.Kindly help me out.

31364.Capture.PNG

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,980 Most Valuable Professional on at

    Your code doesn't check whether the process was successful.

    Consider utilizing renderingCompleted event of SrsReportRunController class, if it exists in AX 2012. D365FO contains an example of such an update in CustEntryCertificateController.recenderingComplete():

    public static void renderingComplete(SrsReportRunController _sender, SrsRenderingCompletedEventArgs _eventArgs)
    {
    	SRSReportExecutionInfo              executionInfo = _eventArgs.parmReportExecutionInfo();
    	CustEntryCertificateContract_DE     contract;
    	CustEntryCertificateController_DE   controller = _sender;
    	CustEntryCertificateJour_W          entryCertificateJour;
    
    	if (executionInfo && executionInfo.parmIsSuccessful())
    	{
    		contract = controller.parmReportContract().parmRdpContract();
    
    		ttsBegin;
    
    		entryCertificateJour = CustEntryCertificateJour_W::findRecId(contract.parmRecordId(), true);
    		entryCertificateJour.Status = EntryCertificateStatus_W::Printed;
    		entryCertificateJour.update();
    
    		ttsCommit;
    	}
    }

  • Community Member Profile Picture
    on at

    Thanks Martin,i got my problem solved,i  register <c>renderingComplete</c> in <c>preRunModifyContract</c> method of controller class and it worked fine.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans