x++


How to show selected items of certain table on the different table in Dynamics AX 2012?


So, I have two tables InventTable (for inverntory) and MyCartTable. I want to connect this tables so when I chose some item or items in InventTable to show in MyCartTable's grid. MyCartTable fields are ItemNumber, ProductName, PartyID;
Assuming you are working with AX 2012:
On your MyCartTable, remove the itemNumber field.
Open an other AOT windows go to Data Dictionary - Extended Data Types and locate the itemId data type. Drag and drop this data type on your table. AX will ask if you want to add a foreign key relation. Click yes, this will add a relation to the InventTable to the relations node of your table.
Now on your form, set the JoinSource property of your MyCartTable to you inventTable data source.
If you are having trouble making this work, create a new form with only those two datasources and a minimum amount of controls (like just 2 grids), this allows you to test this more easily.

Related Links

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

Categories

HOME
azure-stream-analytics
kentico
gpu
case
alarm
zip
odoo-8
spin
little-proxy
fhir
watson-conversation
siddhi
why3
google-form
capistrano3
alpacajs
standards
mvc-mini-profiler
intershop
html5-appcache
digital-signature
nim
delphi-xe5
replication
fat
ms-access-2003
sinch
paperjs
browser-sync
testcomplete
userdefaults
kudu
arduino-ide
jwplayer6
slacktextviewcontroller
searchkit
hackintosh
xv6
bindingnavigator
berkeley-db-je
serde
vugen
google-cse
arq
context-switch
avx
vcloud-director-rest-api
mapxtreme
pacemaker
envi
neon
nikeplus-api
delta
data-protection
phpwebsocket
upx
lz77
phpgrid
jbase
relativelayout
state-restoration
sciruby
fuelcms
cgi-bin
visual-sourcesafe-2005
evolus-pencil
keyup
uvc
kubuntu
cakephp-2.7
cross-join
ejb-2.x
structuremap3
live555
dot42
renderer
cfcache
git-repo
xmltodict
artemis
gd-graph
code-duplication
mbunit
cascadingdropdown
fb.ui
argouml
sqlclr
wimax
booksleeve
redis-py
boost-msm
veracity
os.system
adobe-media-server
garbage
saxparseexception
entitydatasource
quotation-marks
metaweblog
instantiationexception
facebook-iframe
hbm2java
nstokenfield
cfwindow
murmurhash
xpsdocument
linfu-dynamicproxy
dsoframer

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