Notifications
Announcements
No record found.
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!
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/.../
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.
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?
Yes, That's correct @rp@n
Thanks Mohit
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.
Pls give me more shed on this.
thanks!
Hi, I believe you can still CoC on method, please try below code
public void prePromptModifyContract() { next prePromptModifyContract(); //Add your code }
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 ?
thansk!
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().
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 451 Most Valuable Professional
André Arnaud de Cal... 428 Super User 2025 Season 2
BillurSamdancioglu 239 Most Valuable Professional