Hi all,
I'm working on a report Cust Aging report and i customized it with a new parameter.
In DP class i m able to get this parameter value.
How could i get it also on another class used on my report ?
Regards.
Hi,
you mentioned custagingcalculation is an CustAgingReportDP class. Inside your extension class you will be able access the contract class parm methods.
Hope below code is helpful
[ExtensionOf(CustAgingReportDP)]
final Class custagingcalculation //i am using same name as your class in this example, however it should be named as CustAgingReportDP_Extension
{
private CustAgingReportContract custAgingReportContract;
public void calculateMethod()
{
custAgingReportContract = this.parmDataContract() as CustAgingReportContract;
custAgingReportContract.parmAgingBuckets();//Example on calling the existing parameter
custAgingReportContract.YOURPARMMETHOD();// here you can call the custom parameter that you have created
}
}
Hello,
If someone could teach me how to do it please ?
See U.
Hello alex2112
Yes i made an extension on custagingcalculation class to use preprocess method
is custagingcalculation an extension class you created for CustAging DP?
Hello arunraj
I need to use a field input (dimension) given by class DP and the contract variable on custagingcalculation class and preprocess method to delete transaction which dont have the input value.
Hi Awaxx,
Can you elaborate on how you are trying to use CustAgingCalculation class with CustAging DP class, that will help us to give more suggestion on linking the two classes
Hi guys i tried many things but still not reach my goal
Could someone help ?
Hi GirishS
Not very sure how to link CustAging DP class to my CustAgingCalculation Extension with parameters
I tried something i found like this :
public class MyClass { // Declare the parm method public void parmMyParameter(str _myParameter) { // Assign the parameter value to a class member variable or use it as needed this.myParameter = _myParameter; } // Class member variable to store the parameter value private str myParameter; } And use that like here : MyClass myObject = new MyClass(); // Set the parameter value using the parm method myObject.parmMyParameter("Hello World"); // Get the parameter value using the parm method str parameterValue = myObject.parmMyParameter();
But need to pass many arguments in new method to reach directly my extension class but not accessible on DP class but i m not sure
I will dig again
Regards
It's similar to calling contract class inside the DP class to get the values.
Create one parm method in another class - Assign the value to that parm method inside the DP class.
Thanks,
Girish S.
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156