Issues with currency fields and business rule conditions in a scoped app (Defect?)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2016 11:08 AM
We're using several currency fields on a form in a scoped app. There is a 'display' business rule, which should be triggered on the condition (Total Budget is a currency field):
But that "Total Budget - greater than" just doesn't work and I see system errors in the log:
org.mozilla.javascript.EcmaError: "getCurrencyFilter" is not defined.
Caused by error in <refname> at line 1
==> 1: function trecord() {return !!(current.are_there_funds_associated == 'Yes' && current.budget >= (getCurrencyFilter('x_narns_gna_agreement','budget', 'USD;0')));}trecord();
If I remove the part of the condition related to the currency field then no errors appear in a log.
Have you guys ever experienced this kind of issues with currency fields?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2016 01:38 AM
Hi Andrew,
Yes, this was a known issue. The function is defined in a global business rule available to all scopes, but the issue is that getCurrencyFilter isn't invoked in the proper namespace by the UI code. There is no documented work around for this issue, but it has been fixed starting with the Istanbul release.
Best regards,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 08:59 PM
Currently trying to build a UI policy to set a field to read only based on Capital Expense > $10,000.00 and running into this same issue. This is on Istanbul, thoughts?