Sunday, 2 August 2015

How to change grid row color in listpage/form in Dynamics Ax 2012

Hello Guys...!


How to change grid row color in listpage/ form in Dynamics Ax 2012 ?

Solution :

Go to Form Datasource and override Displayoption() method and write code according to your requirement.

Example :

 public void displayOption(Common _record, FormRowDisplayOption _options)
    SalesTable prodtablelocal;
    prodtablelocal = _record;
    Case SalesStatus::Delivered:
    _options.backColor(65535); //Light Yellow
    Case SalesStatus::Invoiced:
    _options.backColor(8421631); //Light Red
    Case SalesStatus::Backorder:
    _options.backColor(65408); //Light Green

@Rahul Talasila

No comments:

Post a Comment

Document type to keep attachments of ER configurations has not been defined in ER parameters dynamics 365 finance & Operations

I was getting the below error while generating electronic payment for vendor payments in d365 F&O with 8.0 version. Document type to ...