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

About Data Dictionary
setTimeOut and local function
Passing FromControl in a lookup override method
Reference control from datamethod in generated design
Extended EDT does not compare dates
How to display a tooltip in Dynamics AX 4.0?
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++

Categories

HOME
go
asp.net-web-api
porting
polymer
wakanda
fpga
case
swt
numbers
access
bitbucket-api
limit
interpolation
retrofit2
pattern-matching
syntaxnet
symmetricds
do-while
microsoft-dynamics-nav
googlebot
articulate-storyline
rubymotion
backpack-for-laravel
pagespeed
exit
licensing
ms-access-2003
sqsh
testcomplete
google-cast
recurring-events
mockjax
left-join
dumpbin
fstream
android-sugarorm
xajax
flatmap
logback-groovy
file-sharing
vaadin-charts
oim
opennms
lampp
reindex
ngmaterial
quicktime
universal-analytics
taocp
smartfoxserver
flex-monkey
dotnetnuke-7
lua-telegram-bot
aurora
kendo-upload
rasterize
google-books
sony-lifelog-api
airbrake
grouping-sets
exceldatareader
nodelist
pseudo-class
punycode
appserver
encryption-asymmetric
named-parameters
jquery-slider
ios8-extension
terminate
gtm-oauth2
jeromq
printdialog
kogrid
preload
landscape-portrait
mtu
delimited-text
silent
easyb
pos-for-.net

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App