x++


MultiSelectionHelper not working as expected


I'm trying to perform an operation on multiple lines on my form. I have tried to use multiselectionhelper, and it seems as it would work, but for some reason, it's not. My operation is still looking at the last line I have selected instead of all the selected lines.
myTable myTableTmp;
MultiSelectionHelper selectionHelper = MultiSelectionHelper::construct();
selectionHelper.parmDatasource(myTable_ds);
myTableTmp = selectionHelper.getFirst();
while (myTableTmp )
{
//perform operation
myTableTmp = selectionHelper.getNext();
}
This looks like it would work, but still not working as expected.
Any help would be greatly appreciated. Thanks!
I have finally figured it out. I'm not sure how I missed it. The answer was really simple. I had this:
myTable myTableTmp;
MultiSelectionHelper selectionHelper = MultiSelectionHelper::construct();
selectionHelper.parmDatasource(myTable_ds);
myTableTmp = selectionHelper.getFirst();
while (myTableTmp )
{
localTable.methodCall();
myTableTmp = selectionHelper.getNext();
}
I should have used myTableTmp.methodCall() instead of the localtable.methodCall()
Thanks for anyone that tried to help!

Related Links

How to force/format two decimal places
Regarding X++ query
MultiSelectionHelper not working as expected
Sorting by custInvoiceJour.Dimension
Refresh the main screen in ax dynamics 2009
How to insert into a table field with value from a display method dependent of string
x++ cannot read registry entry
How do I get the caller Form's name in the Insert() of a table in AX 2012?
How to lookup into another table using EDT AX 2012
Set a Date Value to a Date Field in AX2012
Determine if a job is running in X++ code
Dynamics AX 2012 parsing Int32 to table field integer
Cancel Sales order packing slip through x++
Transferring open account records between customers
How to make sure that a form is only opened once?
Extend system menu in Dynamics AX 2012?

Categories

HOME
search
gridview
developer-tools
apache-jena
webdriver
formal-languages
sh
solaris
bitbucket-api
vsm
mvc5
extjs4.2
spin
distribution
pega
radgridview
favicon
shared-libraries
capistrano3
esoteric-languages
vuejs
sigma.js
rubymotion
aggregation
tosca
flask-sqlalchemy
short-url
has-and-belongs-to-many
outliers
openmdao
bioinformatics
constexpr
utorrent
sql-server-2000
hreflang
installshield-le
dynamic-jasper
fossil
baidu-map
sim-card
odroid
spring-mvc-test
congestion-control
apollostack
signal-strength
flask-login
vaadin-elements
jquery-ui-draggable
fclose
appdomain
mouseleave
baidu
visual-studio-2008-sp1
node-request
cudd
lrs
kango-framework
upx
microsoft-reporting
branch-and-bound
dnssec
uvc
zend-currency
openbabel
mruby
deform
spy++
wcm
ss7
rcaller
live555
decoupling
amslidemenu
multiautocompletetextview
gwt-openlayers
away3d
mongohq
onload-event
cascadingdropdown
twisted.web
saleslogix
jdb
relative
node-redis
exponentiation
twitterizer
sifr
mathematical-notation
wysiwym
technical-debt
pbcopy

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