x++


Sorting by custInvoiceJour.Dimension


How does one sort invoice values by dimensions ?
Lets say that I wanted to loop through all of the records in the period 01.01.2014 to 05.01.2014 and sum up the total invoiceAmount for each dimension.
If I were writing this in C# I would probably just make a directory and do a ForEach on the dataset and check if the key exists in the directory if it does I would add to the value if it does not exist I would add a new key to the directory.
But i am unsure how to do this in X++
while select custInvoiceJour
where custInvoiceJour.InvoiceDate >= 01\01\2014
&& custInvoiceJour.InvoiceDate < 04\01\2014
{
// Here I would need some kind of container or other method of
// working with the data
info(strFmt("Dimension %2", custInvoiceJour.Dimension[2]));
}

Related Links

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?
How to show selected items of certain table on the different table in Dynamics AX 2012?
AllowEdit doesn't work properly in Dynamics AX
AX 2012 how to set args record datasource in X++
Clients seem to be running old (buggy) code after XPO project import
Number sequence AX 2012
SSRS MS words report with page break

Categories

HOME
django
gpu
graphics
grafana
alarm
seo
cublas
google-apps
emscripten
mapbox
gluon-mobile
performancepoint
fabric.io
pcl-crypto
pega
android-securityexception
ycsb
datastage
jsonpath
favicon
magnetic-cards
cumulocity
bitnami
powershell-v5.0
template-engine
xmonad
google-container-registry
apache2.4
lilypond
undertow
question2answer
gulp-watch
pchart
flask-sqlalchemy
displaytag
highstock
xcode-ui-testing
paragraph
kodi
android-sugarorm
baidu-map
mnist
imx6
openproject
watchman
graphhopper
tex
ods
railstutorial.org
demo
typesafe-config
linqpad
angular-http
double-click
activeperl
lightning
reindex
backbone-collections
excel-dna
filehandle
boo
gpg-signature
pybrain
builtins
microstation
greatest-n-per-group
jboss-tools
mapinfo
avspeechsynthesizer
udpclient
findfirst
false-sharing
user-management
highland.js
grgit
avisynth
microsoft-reporting
ess
intel-c++
poppler
linked-tables
avahi
typeconverter
entity-framework-4.3
shopizer
broadband
delayed-execution
dbaccess
nodelist
showdialog
post-commit-hook
metatrader5
imagefilter
xml-namespaces
tinyxml
mutual-authentication
accesscontrolexception
visual-studio-express
solace-mq
model-driven-development
jquery-1.9
traceability
video-codecs
patricia-trie
thttpd
lambdaj
failing-tests
listactivity
facebook-iframe
object-database
google-wave
fdf
online-storage
leader
wspbuilder
idatareader

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