Change View POV inside Custom Calculate BR
Dear all,
We have 2 custom calculate functions (Finance BR) that are executed one after the other. The 1st one uses V#Period as POV and the 2nd uses V#YTD as View POV. These POV are set on the data management steps that use these functions.
We'd like to merge both functions into one to simplify maintenance but the fact that they use different View POV creates an issue; if the data management steps uses V#Periodic or V#YTD, one function will work properly but not the other. Do you know how it can be set as a fixed View POV into the functions itself? Maybe there's a way updating the value of the "args" variable that is used as an input into the formula.
Thank you for the help and guidance.
Best regards,
Carlos
You can define the view by using ExpressionDestinationInfo like this:
Dim destination As ExpressionDestinationInfo = api.Data.GetExpressionDestinationInfo("V#YTD")
api.Data.SetDataBuffer(result_buffer, destination)