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