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

Number sequence AX 2012
SSRS MS words report with page break
How can you get a detailed error descriptions in Dynamics AX?
How to get the length of an array?
X++ loop through lines in grid control
Concatenating row values in x++
How do you access a macro in the AOT macro node?
How can I set the Backgoundcolor of an AX2012 Action Pane Button
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?

Categories

HOME
django
phpword
deep-learning
apache-flink
nvd3.js
gpu
numbers
themes
jsf-2.2
switch-statement
babeljs
nuget-package
trac
barcode
accessibility
project
magnetic-cards
event-sourcing
package.json
sencha-touch
asp.net-core-webapi
visual-glitch
kendo-mobile
inno-download-plugin
aggregation
slidetoggle
stackexchange
angular-translate
user-defined-functions
jaws
ntp
xbox
anki
weather
processwire
projects-and-solutions
sim-card
bc
ods
demo
claims
clang++
uiimage
procfile
getchar
corruption
pybrain
offline.js
juice-ui
rmongo
polyline
atlas
stax
actor-platform
centrifuge
i386
android-dateutils
observablecollection
udpclient
nss
redis-cluster
findfirst
thread-sleep
grass
design-principles
jaunt-api
xenomai
computer-architecture
poppler
amiga
sql-server-data-tools
liquid-layout
apache-commons-daemon
matlab-deployment
user-permissions
cakephp-2.7
rapidsvn
android-cookiemanager
crowd
big-ip
webfinger
device-tree
insight.database
dct
gae-quotas
c++builder-xe5
dtmf
inappsettingskit
cffile
device-width
zope.interface
apache-whirr
luabind
fsevents
msr
django-paypal
tabpanel
nstokenfield
request-headers
mathematical-notation

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