x++


X++ loop through lines in grid control


So the idea is to assign an icon to a Window control in the Grid control of a form (PurchTable), depending on whether a record has a document attached to it.
I use a select statement to check DocuRef if there is match between RefRecId and current RecId.
So the question is, how do I assign a different icon to each line? Can't really figure it out :/
I'm guessing you wrote a display method similar to method showDocHandIcon on table InventTestGroupMember. In that case, you need to return an icon resource number depending on some data of your current line.
So for example your lines contain an enum field and the enum has three values 1, 2 and 3 and for values 1 and 2 you want to return icon 1 and for value 3 you want to return icon 2.
Btw, you wrote that you check if there is a match between RefRecId and RecId. Please consider also checking refDataAreaId and refTableId, since the RefRecId may not be unique in table DocuRef.

Related Links

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?
Dynamics AX 2009 - Modify insert into smmActivities from ProjTableWizard?

Categories

HOME
jpa
cobalt
rdbms
devise
pclxl
javacc
soa
iis-6
performancepoint
sendgrid-api-v3
pcl-crypto
activecollab
opengl-es-3.0
radgridview
flash-player
event-sourcing
azure-iot-hub
android-7.0-nougat
digital-signature
sse
sigma.js
boost-icl
dpdk
imageresizer
custom-post-type
jackson-modules
google-cast
left-join
autolisp
spring-security4
simplecv
mailkit
gnat-gps
activexobject
modalviewcontroller
pdw-file-browser
engine.io
alphabetical
sql-server-ce
sim-card
mongoose-schema
unordered-map
azure-arm
doc
outputcache
apache-directory
jide
chai-as-promised
configurationmanager
identification
manova
reindex
context-switch
boo
d3-force-directed
jtree
stripe-connect
angular2-testing
xcode-server
eigenvector
cda
uiactionsheet
nupic
libav
aspen
vhosts
ess
video-player
zen-cart
.bash-profile
branch-and-bound
snoop
cryptographichashfunction
apache-spark-1.3
showdialog
theos
metatrader5
vbe
android-usb
inappsettingskit
process-explorer
merb
pclzip
alice
qtconcurrent
extconf.rb
thttpd
inkcanvas
urlrewriter
fsevents
catransform3d
umra
mtu
commerceserver2007
updatesourcetrigger
web-garden
duplex
murmurhash
strtod
perl5.12
information-management
contentpresenter

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