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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Hiw to get caller form name in RDP class in ssrs report

(0) ShareShare
ReportReport
Posted on by 56

Hi team,

The below link mention in controller class in Ssrs report to get the caller name

   

How I will get this value further in RDP class in process report method?

Please give me more shed on this 

Thanks!

I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at

    Hi, You can create a parameter in contract class, set  value from controller in this parameter and then use that parameter in DP class.

    Please check this article

    stoneridgesoftware.com/.../

  • Suggested answer
    GirishS Profile Picture
    27,843 Moderator on at

    Hi,

    As mohit mentioned create one parameter in contract class - Get the caller menu item in the controller class main method. Assign the value to parameter using prePromptModifyContract method. In the rdp class you can get that parameter like others.

    Thanks,

    Girish S.

  • @rp@n Profile Picture
    56 on at

    Thanks Mohit & Girish

    I needs to

    1. Contract class -Create a new parm method in Contaract class

    2. Controller class -

    Main() - The link which I have provided to get the caller name to write here.

    prepromptmodifycontract method - assing that value ( caller menu item name) to parameter.

    3. DP class - call this parm method to get the value in processReport method.

    Correct?

  • Mohit Rampal Profile Picture
    12,573 Moderator on at

    Yes, That's correct @rp@n 

  • @rp@n Profile Picture
    56 on at

    Thanks Mohit

  • @rp@n Profile Picture
    56 on at

    Hi Mohit & Girish,

    I have checked the class SalesInvoiceController, in this calss PrePromptModifyContract method is NOT there.

    How I will add the method PrePromptModifyContract  in the class SalesInvoiceController

    Kindly let me know the steps pls.

    pastedimage1682236156060v1.png

    Pls give me more shed on this.

    thanks!

  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at

    Hi, I believe you can still CoC on method, please try below code

    public void prePromptModifyContract()
    {
        next prePromptModifyContract();
        //Add your code
    }

  • @rp@n Profile Picture
    56 on at

    thanks Mohit,

    Still in class SalesInvoiceController, "PrePromptModifyContract" methos in NOT exited. Can I add that method in extension class with use COC as you mentioned?

    I have already extension class  for SalesInvoiceController and having two methods

    [ExtensionOf(classStr(SalesInvoiceController))]
    final class SalesInvoiceController_Extension
    {
        protected str documentTitle()
        {
        }
        
        public static void main(Args _args)
        {
        }
    }

    Shall I add method PrePromptModifyContract before main or I can add  after main method also ?

    Pls give me more shed on this.

    thansk!

  • Mohit Rampal Profile Picture
    12,573 Moderator on at

    You can add the method anywhere in extension class, the placement of method as compiler doesn't check it. All good, As long the method is in correct extension class.

    My understanding is Even if method is not existing (not overriden by Microsoft) in this class, it will still be called as per sequence, so event handlers and CoC works for standard methods.

    Microsoft doesn't need to extend every standard method so you can treat it as empty method with super().

  • @rp@n Profile Picture
    56 on at

    Thanks Mohit, let me check

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 733

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 278 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans