Sandy Blondino
16th January 2012, 16:30
Hello everyone,
I have a question about the rotate.currency function.

I see where Infor has added the rotate.currency functionality to a lot of the GL and finance reports, which is great.

But how do I use the rotate.currency function in a custom session/report?
Does anyone have any sample code?

Thanks for any help,
Sandy

Sandy Blondino
19th January 2012, 17:33
Addendum to previous post:
I created a new session/report and added the rotate.currency function.
When I run the session and click on the rotate.function button, I can see that the display field on the form for currency is flipping back and forth between 'CAD' and 'USD', but the report isn't producing the right results. The amounts aren't different.

Does anyone know what I might be missing in the setup?

Thanks for your help,
Sandy

veeru316
20th January 2012, 08:25
Use pre defined variable "attr.rotate" which will give you the position of the current currency.Since the amounts are stored in array we need to pass this position as argument to the amount field to get the amounts for that currency on report.
Eg. position = attr.rotate
amount(position)

Hope this will solve ur problem.

Sandy Blondino
20th January 2012, 22:59
Yes, it solved my problem. It seems to be working great.

Thanks for your help,
Sandy