Question
Virtusa India Pvt Ltd
SG
Last activity: 26 Jan 2018 23:37 EST
Passing additional Parameter
Hello Team - We have a requirement of using OOB Future Value function by passing additional parameter i.e the FV function that we have in Excel.
In the existing OOB function in Pega we would be passing 4 parameters.... @Financial.fv(Interest rate, Number of Periods, Payment, Present Value).
But as per our requirement we need to pass 5 parameters @Financial.FV(rate, nper, pmt, [PV], [type]). Type - is nothing but the Integer type.
Do we have any other function that exists that I can use or has any one came across this scenario?
The OOB function using the Engine code FunctionUtils so I dont think saveas the existing function and adding one more parameter will resolve the issue.
Need your expertise and guidance to meet this requirement.
***Edited by moderator, Maryrita: moved to Product Support from Applications***
Hello,
You are right, that makes a call down into the engine. I don't really understand what your additional parameter would do, but the engine would need to be enhanced to support it, unless you can make a wrapper utility function that works with the engine code as it is and then adjust the result per your additional parameter. You should document what you are looking for here and our moderators can help make sure the appropriate product teams see it.
Thanks,
Mike