When using the "View details" option from a Segmented Entry control (e.g. Account field) in a posted General journal, the jumpRef method sometimes return an "Unable to return DimensionAttributeValue record for ..." error.
The error can be reproduced using the following steps:
1) Post two customer transactions residing in different companies, from a General journal, like shown in the picture
2) Leave the posted GJ
3) Re-enter the posted GJ.
4) Use View details from the first transaction's Account field
5) Use View details from the second transaction's Account field
It seems, that the ledger dimension variable (lastUserInput) in the Segmented Entry control's backend is only updated the first time we activate "View details". The second time, the system attempts to jump to the right company, but the wrong account number, resulting in the error.
Below is the code, updating the "lastUserInput" variable, which is only called once.
*This post is locked for comments
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,993 Most Valuable Professional
nmaenpaa 101,156