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