Announcements
No record found.
Hi,
How to get the value macros inside TradeTotals class
public static Integer posCurrency() { return #posCurrency; }
I want to call TradeTotals::pocCurrency and get GBP instead of integer number.
Hi junior AX,
posCurrency macro has been defined in the class with integer 8 and is being used to identify the position of the currency field in a container.
You can find the currency code value using conPeek. Please check currencyCodeValue method in PurchTotalsForm class as an example.
[tag:posCurrency] is an integer and posCurrency method will always return that integer. There's no way how you could call TradeTotals::posCurrency and get the currency code.
But, if your actual requirement is something else, perhaps we can help you solve it.
If you look at that class in detail, you will notice that [tag:posCurrency] is used to control the position of the actual currency info in the displayFields container.
So, if you use [tag:posCurrency] to lookup a value from displayFields (with conPeek function) you will get the actual currency code.
Please let us know if this helps to solve your actual requirement. Thanks!
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 688
André Arnaud de Cal... 524 Super User 2026 Season 1
CP04-islander 301