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

how to disable intellisense in ax2012's code editor?
How do you “Run” a class
General quesions about Dynamics Ax
Convert date into julian date
How to change the level of AX info messages
X++ unbound control
WeekOfYear in X++ using .net lib
How to tell what module has called the program
Getting the index of an array element of EDT Dimension
Destroy Object in X++
not able to run job in batch
Creating a folder on fileSystem dynamics ax
Can the X++ language be used for the following development?
How can you create a simple dialog box in Dynamics AX?
Reading a comma separated values (csv) file in dynamics ax
What is the function to get the system date and current date in Dynamics AX?

Categories

HOME
ng-idle
forms
jmeter
ecmascript-6
ns-3
interface
camera
saml-2.0
spring-data-redis
bitbucket-api
xbee
tail
gembox-spreadsheet
polling
google-admin-sdk
opengl-3
32bit-64bit
little-proxy
openstreetmap
minecraft-forge
watson-conversation
naivebayes
intercom
gource
internationalization
red5
nim
delphi-xe5
jquery-ias
zxing
jquery-callback
google-api-client
draft-js-plugins
fragment-backstack
nstimer
bioinformatics
eviews
aws-codecommit
paragraph
wacom
card.io
android-gridview
gnat-gps
python-import
searchkit
parse-tree
cd
ideascript
health-monitoring
linq-to-objects
chef-solo
setup.py
skylink
branching-and-merging
spring-integration-sftp
dtsearch
manova
dt
cup
quicktime
css-transforms
janus
rackspace-cloud
chromium-os
autosar
custom-lists
spring-cloud-feign
eigenvector
thread-sleep
pushbots
np-spring
jparsec
sapscript
batik
wso2greg
dronekit-android
skspritenode
linked-tables
mraid
execve
beatsmusic
addressing-mode
twitter-bootstrap-rails
gae-quotas
getopt
http-patch
script#
chart-director
argouml
web-notifications
joomla3.1
pdfviewer
vfs
usertype
pinch
lr
cdonts
nhprof
binomial-heap
dsoframer
httpcookie

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