21 Oct 2013

Highlight the Report Selected Record Row in axapta


To highlight the row in  report based on specific value just add the following code in the execution section of section group.

public void executeSection()
{
int usecolor
;
usecolor=WinApi::RGB2int(255,0,0);
if(inventTable.itemprice>5)
{

this.foregroundColor(usecolor);
}
else
{
this.foregroundColor(white);
}
super();

}

this will highlight all the record where item greater then 5.

No comments:

Create number sequence in D365 FO

Create the data type. Add code in the loadModule method of the appropriate NumberSeqModule subclass. Add a method to the module’s paramet...