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

SSRS MS words report with page break
How can you get a detailed error descriptions in Dynamics AX?
How to get the length of an array?
X++ loop through lines in grid control
Concatenating row values in x++
How do you access a macro in the AOT macro node?
How can I set the Backgoundcolor of an AX2012 Action Pane Button
How to Edit address using X++ in AX 2012
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

Categories

HOME
google-app-engine
phantom-dsl
microsoftgraph
redux-form
jax-rs
pyqt
composite-primary-key
google-apps
zip
mvc5
trac
character
barcode
qpython
mql5
code-generation
shared-libraries
http-post
modbus-tcp
alpacajs
glyphicons
dreamweaver
vuejs
swagger-2.0
windows-xp
symbols
ag
guzzle
gulp-watch
ember-cli
string-concatenation
easeljs
object-storage
gpio
jackson-modules
paperjs
python-2.6
zend-debugger
catch-unit-test
laravel-eloquent
login-script
installshield-le
hunspell
slacktextviewcontroller
sim-toolkit
alphabetical
git-rewrite-history
google-earth-engine
mongoose-schema
comparison-operators
dcmtk
opencmis
jide
linter
sonarlint-eclipse
cnc
mschart
geotiff
modelsim
opengl-4
git-flow
boo
otp
sandcastle
android-wake-lock
riot
nss
spreadjs
bizagi
sklearn-pandas
upx
database-relations
jparsec
concept-insights
java-money
terracotta
video-player
rubaxa-sortable
slash
uncompress
dnssec
iso-prolog
jama
mdichild
dct
menubar
sbcl
rfc5322
http-patch
breakout
ice-cube
poker
monotouch.dialog
inkcanvas
jdb
stress
google-floodlight
uipagecontrol
event-receiver
dataform
cdonts
commerceserver2007
localizable.strings
unmanagedresources

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App