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