Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Adding the SSRS report controller class in BatchTask

(0) ShareShare
ReportReport
Posted on by 925

Hi All,

I want to use the extended standard class WHSWorkControllerExt class as a batch task in my batch job. I have decorated with the class using the attribute [SysOperationJournaledParametersAttribute(true) but i am getting the below error.

'report name is not set. please set report name using parmreportname method". 

Please refer the code and suggest me how to solve this issue.

Thanks in advance.

/// 
/// This class is used for customizing the standard work report with the new design.
/// 
[SysOperationJournaledParametersAttribute(true)]
public class WHSWorkControllerExt extends WHSWorkController
{
    public static WHSWorkControllerExt construct()
    {
        return new WHSWorkControllerExt();
    }

    public static void main(Args _args)
    {
        SrsReportRunController controller = WHSWorkControllerExt::construct();

        controller.parmReportName(ssrsReportStr(WHSWorkExt, Report));
        controller.parmArgs(_args);
        controller.startOperation();
    }

    /// 
    ///
    /// 
    protected void preRunModifyContract()
    {
        this.parmReportContract().parmReportName(ssrsReportStr(WHSWorkExt, Report));
        super();
    }

}

  • ThivaKar Profile Picture
    925 on at
    RE: Adding the SSRS report controller class in BatchTask

    Any update or suggestion on this?

  • ThivaKar Profile Picture
    925 on at
    RE: Adding the SSRS report controller class in BatchTask

    Thanks for your reply.

    [quote user="Blue Wang"]But you want to add class to batch task, then you need to extend SysOperationServiceController, as I suggested before.[/quote]

    Yeah. Is there any possibility to use the controller class is BatchTasks(WHSWorkController). I want to use the same class for both.

    Is there any way for that?

    Please let me know if you need anything else

  • Blue Wang Profile Picture
    on at
    RE: Adding the SSRS report controller class in BatchTask

    HI Rusty,

    Actually, I don't fully understand your ultimate purpose.

    But you want to add class to batch task, then you need to extend SysOperationServiceController, as I suggested before.

  • ThivaKar Profile Picture
    925 on at
    RE: Adding the SSRS report controller class in BatchTask

    When i tried with SysOperationServiceController i can able to add the class as BatchTask but when i use the class(In report menu item) for report it is not working.

  • ThivaKar Profile Picture
    925 on at
    RE: Adding the SSRS report controller class in BatchTask

    Please check my above code.

    WHSWorkControllerExt this class is used to set the new report design and it extends WHSWorkController class.

    How it will work when i extend my class WHSWorkControllerExt from  SysOperationServiceController?

    Please let me know if i missed anything here?

  • Blue Wang Profile Picture
    on at
    RE: Adding the SSRS report controller class in BatchTask

    HI Rusty,

    Have you tried extends SysOperationServiceController ?

    Got any error?

  • ThivaKar Profile Picture
    925 on at
    RE: Adding the SSRS report controller class in BatchTask

    Related to D365FO, Ludwig.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Adding the SSRS report controller class in BatchTask

    Hello RustyRyan,

    Is this issue related to D365FO or to AX2012?

    Best regards,

    Ludwig

  • Blue Wang Profile Picture
    on at
    RE: Adding the SSRS report controller class in BatchTask

    Hi Rusty,

    I mean use this:

    public class WHSWorkControllerExt extends SysOperationServiceController
    {
    }

  • ThivaKar Profile Picture
    925 on at
    RE: Adding the SSRS report controller class in BatchTask
    [quote user="Blue Wang"]Controller class extends from the SysOperationServiceController class. It holds information about the batch operation.[/quote]

    No. Controller class extends from SysOperationController not SysOperationServiceController .

    Please LMK if i am missing anything.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,129 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,895 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans