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 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
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

Categories

HOME
android
oracle12c
string
formal-languages
twig
depth
angular2-material
shiro
pclxl
xbee
visual-studio-emulator
jquery-ui
trac
special-characters
favicon
http-post
jmp
sigma.js
connector
dapper-extensions
windows-server-2003
moses
jquery-multiselect
sinch
exchangewebservices
twiml
testcomplete
sql-server-2000
erb
dynamic-jasper
jwplayer6
latitude-longitude
alphabetical
playframework-2.1
projects-and-solutions
railstutorial.org
metawidget
news
opencmis
flask-restful
term
robomongo
user-defined-fields
geotiff
page-replacement
aquamacs
qtranslate
wpas
context-sensitive-grammar
edit
flac
donations
gets
smartfoxserver
usart
atlas
grails-plugin
autosar
mapinfo
cassia
stream-processing
cda
cortex-m
mobiledoc-kit
jaunt-api
toran-proxy
jdi
dock
finalbuilder
graphics2d
osc
user-permissions
ejb-2.x
named-parameters
codeplex
rcaller
websphere-esb
cocoalibspotify-2.0
mongohq
nevron
diem
actiondispatch
cakephp-1.2
extconf.rb
codebase
mtu
zen
filesystemobject
localizable.strings

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