x++


group by clause in X++


Another weird question, is it possible to specify an expression in a group by clause in X++? basically, how can I do the following:
while select InventDim **group by substr(InventDim.inventBatchId,1,3)**
join InventDimId from InventTrans
where InventTrans.inventDimId == Inventdim.inventDimId && InventTrans.ItemId == _itemId
{
MyQty += inventTrans.Qty
}
thanks for your help
regards,
Thomas
No, it's not possible - see Select Statement Syntax to understand what is allowed and what isn't.
You have to use some workaround, typically to fetch data without grouping and process them by your application code.

Related Links

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

Categories

HOME
sonarqube
oracle12c
cheerio
mstest
spring-data-redis
pdfbox
spring-data-mongodb
vxml
zip
pearson-correlation
tvos
iis-6
angularfire2
recordrtc
rcloud
vimdiff
android-securityexception
favicon
comsol
docx
screen-readers
symfony-2.8
production
nim
sencha-touch
user-experience
dpdk
displaytag
maze
linked-data
anki
left-join
linkedhashmap
github3.py
dynamic-jasper
pop3
reactivekit
tex
health-monitoring
spring-mvc-test
parser-generator
ssrs-2014
strftime
dapper-simplecrud
builder
page-replacement
amq
janus
pybrain
objectscript
choice
slackware
cubism.js
custom-lists
actor-platform
webjars
envi
avspeechsynthesizer
firebase-security
embedding
tracker-enabled-dbcontext
directdraw
microsoft-reporting
opserver
mod-proxy
exceldatareader
at-job
android-cookiemanager
deform
psr-4
xml-namespaces
with-statement
fpdi
openargs
scrypt
isqlquery
joomla-template
pclzip
joomla3.1
curb
os.system
objectquery
josql
database-create
timthumb
cruisecontrol.rb
maven-1
cuda.net
complex-event-processing
alsb

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