I have some problems with displayOptions method in AX 2012. I want to change form grid color where all inserted data is displayed, but my method also colors every other field that can be filled by client(Fields isnt in that grid). My method is writed in forms data source and it looks like this -
public void displayOption(Common _record, FormRowDisplayOption _options)
{
KRHEvents events;
events = _record;
Switch(events.EventStatus)
{
Case 10:
_options.backColor(65535); //Light Yellow
Break;
Case 30:
_options.backColor(8421631); //Light Red
Break;
Case 20:
_options.backColor(65408); //Light Green
_options.textColor(12582912);
Break;
}
}
My goal is to remove colored fields in right side. That fillable fields shouldn't be colored. Maybe i have to override different method and in grid? I will appreciate any help!