How to make grid cell background color for list page in ax 2012 r3

Hi Experts,

I have a requirement to solve it. I want to make list page grid cell back ground color .

Checked with list page data source table methods, i tried to create a designOption method but am not able to create design method and also not able to create any overridden method.

Give me a solution. Waiting for reply.

Thanks in Advance and Regards,

AXDeveloper.

At First export listpage form to xpo file and change form’s FormTemplate property to the none. Now you can override the displayoption() method with this code.

public void displayOption(Common _record, FormRowDisplayOption _options)

{

#define.Green(0, 255, 0)

#define.Orange(255, 128, 64)

#define.LightGreen(64, 128, 128)

#define.White(255, 255, 255)

FRTImportTable importTable;

;

importTable = _record.data();

if (importTable.Status == FRTImportStatus::PreInvoice)

{

_options.backColor(WinAPI::RGB2int(#Green));

_options.textColor(WinAPI::RGB2int(#White));

}

else if (importTable.Status == FRTImportStatus::OpenInvoice)

{

_options.backColor(WinAPI::RGB2int(#Orange));

}

else

{

_options.backColor(WinAPI::RGB2int(#LightGreen));

}

super(_record, _options);

}

Export new form to another xpo file. Open each xpo file and find displayoption() method from second xpo file. Copy and paste below code to the first xpo file between METHODS and ENDMETHODS branches.

SOURCE #displayOption

public void displayOption(Common _record, FormRowDisplayOption _options)

{

#define.DarkGray(80, 80, 80)

#define.LightGray(200, 200, 200)

#define.LightGray2(20, 20, 20)

#define.White(255, 255, 255)

FRTImportTable importTable;

;

importTable = _record.data();

if (importTable.Status == FRTImportStatus::PreInvoice)

{

_options.backColor(WinAPI::RGB2int(#DarkGray));

_options.textColor(WinAPI::RGB2int(#White));

}

else if (importTable.Status == FRTImportStatus::OpenInvoice)

{

_options.backColor(WinAPI::RGB2int(#LightGray));

}

else

{

_options.backColor(WinAPI::RGB2int(#LightGray2));

}

super(_record, _options);

}

ENDSOURCE

Save the first xpo and import to the ax.

I hope this link also help for u.

www.fatihdemirci.net/…/

this is listpage ,thats y u can’t create methods in datasource. so first do one thing create listpage interaction class. then u will allow to create methods in listpage.

www.axaptapedia.com/index.php

Hi SreeKumarReddy,

A very thanks for your reply. I am trying to achieve this process, once it’s completed . I will let you know the result.

Thanks in Advance and Regards,

AXDeveloper

Hi SreeKumar,

I am not unable to change form’s FormTemplate property to the none. It’s looking like grayed color.