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

How can I loop over Tables which contain specific characters in their AOT name and delete the data?
Having button that runs code, but doesn't submit data to (or validates against) table
Where are Duties (table name) stored in AX?
Advanced query range
How to read from an Excel file?
group by clause in X++
Determine the number of affected rows by an update_recordset call in Dynamics 4.0?
how to protect the x++ source code
About Data Dictionary
setTimeOut and local function
Passing FromControl in a lookup override method
Reference control from datamethod in generated design
Extended EDT does not compare dates
How to display a tooltip in Dynamics AX 4.0?
how to disable intellisense in ax2012's code editor?
How do you “Run” a class

Categories

HOME
notepad++
nunit
object
flex
devise
sublimetext
pdfbox
alsa
tail
bookmarks
crystal-reports-2013
mvc5
trac
lanczos
computer-science
google-chrome-app
github-enterprise
stellar.js
azure-iot-hub
aws-sdk
jersey-1.0
git-extensions
enterprise-miner
spring-async
imageresizer
object-storage
data.stackexchange.com
motion-detection
genexus-sd
rpgle
ceylon
errbot
bioinformatics
complex-numbers
record
turfjs
twos-complement
classcastexception
modalviewcontroller
openproject
xcode7.3
bc
hackintosh
xv6
apollostack
apache-spark-dataset
spring-integration-sftp
insight
filehandle
bbpress
sandcastle
autosar
xcode-server
segment-io
async.js
watch-os-2
kango-framework
mediametadataretriever
boost-serialization
fink
grass
blitline
asyncdisplaykit
atan2
fiware-monitoring
ess
ons-api
doctype
rpart
uncompress
pyobjc
telepat
actionfilterattribute
openbabel
android-cookiemanager
dsym
git-repo
scriptaculous
gd-graph
poker
time.h
facebook-timeline
epiceditor
windows-98
cardreader
bjyauthorize
qtconcurrent
pyunit
thttpd
failing-tests
infobright
pinch
google-floodlight
multiplatform
creole
cdonts
photolibrary
ie-compatibility-mode
leader

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