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

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
What is “old sys” exactly and why would I receive errors in 2012 because of a missing Macro?
How to filter records in line grid based on selected record in header grid?
Dynamic linking gets cleared when inserting new records
Box::info showing “refreshEx”
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

Categories

HOME
windows
xml
prism
appcelerator
cublas
permissions
pearson-correlation
jax-ws
elasticsearch-5
mql5
jquery-ui-sortable
categorical-data
openpyxl
distribution
watson-conversation
openbugs
magnetic-cards
screen-readers
esoteric-languages
google-data-studio
smartclient
xmonad
identity-management
enterprise-miner
oledb
solrcloud
selinux
blade
spring-async
babel
dataflow-diagram
visual-studio-extensions
opentk
shared
browser-sync
carrierwave
failover
mql
finagle
python-2.6
angularjs-material
playstation-portable
dsx-desktop
pdw-file-browser
getlasterror
numpy-broadcasting
reason
zoomify
metawidget
android-ibeacon
rfc3339
procfile
openresty
clarifai
serde
payara-micro
pdf-conversion
bbpress
oozie-coordinator
google-photos
renaming
redistributable
lrs
adafruit
drawstring
html-to-pdf
qbxml
dynatree
xenomai
intel-c++
pax-exam
nsurlsessiondatatask
kubuntu
entity-framework-4.3
rrule
procedural-programming
document-repository
sonarqube-5.0
machine-instruction
live555
alternate
drupal-nodes
multitasking
redis-py
rmiregistry
stress
fsevents
entitydatasource
django-paypal
instantiationexception
cruisecontrol.rb
hbm2java
opml
asynchronous-wcf-call
sifr3
java1.4
great-circle

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