x++


How can you create a simple dialog box in Dynamics AX?


How can you create a simple dialog box in Dynamics ax?
static void DialogSampleCode(Args _args)
{
Dialog dialog;
DialogField field;
;
dialog = new Dialog("My Dialog");
dialog.addText("Select your favorite customer:");
field = dialog.addField(typeid(CustAccount));
dialog.run();
if (dialog.closedOk())
{
info(field.value());
}
}
for really simple dialog boxes, use the Box Class:
Box::info("your message");
or
Box::warning("your message");
or
if (Box::okCancel("continue?", DialogButton::Cancel) == DialogButton::Ok)
{
// pressed OK
...
or one of the other static methods (infoOnce, yesNo, yesNoCancel, yesAllNoAllCancel, ...)

Related Links

How to force/format two decimal places
Regarding X++ query
MultiSelectionHelper not working as expected
Sorting by custInvoiceJour.Dimension
Refresh the main screen in ax dynamics 2009
How to insert into a table field with value from a display method dependent of string
x++ cannot read registry entry
How do I get the caller Form's name in the Insert() of a table in AX 2012?
How to lookup into another table using EDT AX 2012
Set a Date Value to a Date Field in AX2012
Determine if a job is running in X++ code
Dynamics AX 2012 parsing Int32 to table field integer
Cancel Sales order packing slip through x++
Transferring open account records between customers
How to make sure that a form is only opened once?
Extend system menu in Dynamics AX 2012?

Categories

HOME
httparty
microsoftgraph
api
spark-streaming
ecmascript-6
zend-framework
rsa
pascal
sitecore
knitr
access
hugo
drop-down-menu
android-securityexception
redis-sentinel
atlassian
modbus-tcp
android-7.0-nougat
sigma.js
asp.net-core-webapi
gulp-watch
aggregation
moses
beautifier
mat
ms-access-2003
8051
soot
datastax-enterprise-graph
bringtofront
catch-unit-test
erb
python-import
parse-tree
git-rewrite-history
android-ibeacon
xmldocument
drupal-theming
apache-directory
flask-login
jboss-4.2.x
term
git-flow
cup
monkey
flyout
rxtx
microstation
burrows-wheeler-transform
mapinfo
lean
clipboard.js
shopping
ellucian-scribe
libvlc
custom-errors
boomerang
assertion
iokit
morton-number
coda
toolkit
branch-and-bound
skspritenode
canvg
google-refine
phpldapadmin
java-security
execve
packet-sniffers
spy++
verold
gae-quotas
qscrollarea
gpars
joomla-template
android-icons
mapping-by-code
floating-point-exceptions
user-tracking
catransform3d
xui
tmx
dot-emacs
openfaces
cfwindow
lxr
mathematical-notation
business-model

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