x++


Box::info showing “refreshEx”


I have a method that displays a validation result using the syntax
Box::info(message,title);
However, the first time I run the code it displays the correct title, but the message refreshEx.
Debugging the code the message that is being used is correct, Valid Account Number, but what displays is refreshEx. If I rerun the process the correct message is displayed, this only happens the first time.
Just in case it matters the flow is
Form - DoValidation method creates Class to call...
Class - public AccountValidation method that calls...
- private displayValidation method that contains this code
Thanks...
If the message contains some fields from the database, try to execute a reread() or refresh() or refreshEx() method (depending on the context) to the datasource before showing the value through the info box.
May be the cached data is not refreshed after an update or insert.
EDIT:
If you are specting a return parameter from an Event, don't forget that this is an async process. An example on MSDN:
http://msdn.microsoft.com/en-us/library/gg843664.aspx
I have seen this error (unfortunately), in an AX 2009 installation, launched from code behind a button in a form:
if(HIEItemOrderSetup.RMAvailable < HIEItemOrderSetup.RMQuantity)
{
ok = DialogButton::Ok == box::okCancel("#HIE848",DialogButton::Ok,"#HIE849");
}
As far as I can tell it only occurs when you have a breakpoint on your form, when you are updating it. Removing the breakpoint will show the original message or at least this is what I have found.

Related Links

Number sequence issue Ax 2012?
Find code that's running in a Batch Job
What is the _isMexican boolean for in the Global::Checkpower method?
AlwaysOnTop property not behaving properly
Boolean AND logic in Microsoft Dynamics AX 2012 AIF QueryCriteria
Table: PrintMgmtSettings Field: Printjobsettings(Blob)
What happened to the hrplimittablerelationship table in ax-2012-r2?
Why is my changes ignored to releaseupdate scripts in dynamics ax 2012 r2
What is “old sys” exactly and why would I receive errors in 2012 because of a missing Macro?
How to filter records in line grid based on selected record in header grid?
Dynamic linking gets cleared when inserting new records
Box::info showing “refreshEx”
How to filter lookup values on a dialogfield in Report Dialog based on another dialogfield in AX 2012 AOT reports?
Adding scrollbar to a Group in AX 2012 form
Table query inconsistent
AX2012 Sales Order Creation through AX Classes

Categories

HOME
android
beautifulsoup
jax-rs
swt
obfuscation
spring-data-redis
pdfbox
yandex
gembox-spreadsheet
discrete-mathematics
tput
radgridview
intercom
aws-sdk
windows-xp
ag
kendo-mobile
springfox
imagemap
react-toolbox
qliksense
epsilon
ms-access-web-app
oculus
twiml
testcomplete
userdefaults
autodesk-designautomation
turfjs
linkedhashmap
classcastexception
xdocreport
apache-stanbol
watchface
apriori
postgresql-8.4
outputcache
oim
httr
dynamic-linq
cnc
robomongo
dotnet-httpclient
rserve
activeperl
google-cse
trojan
wpas
android-testing
jqchart
mach-o
choice
angular2-testing
omxplayer
jboss-tools
appscale
lua-telegram-bot
nss
dbamp
createprocess
themoviedb-api
r-package
xenomai
intel-c++
viola-jones
node-serialport
entity-framework-4.3
j-security-check
adehabitathr
infosphere-spl
uncaught-typeerror
cancellation
tinyxml
ios8-extension
dsym
visual-studio-express
gtm-oauth2
oocss
wp7test
booksleeve
intersect
sentestingkit
vfs
dajaxice
thttpd
lambdaj
flex-mobile
procedures
update-statement
creole
xui
office-2007
cfwindow
feasibility
leader

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App