HI Team,
I am trying to set 2 different colors on 2 columns of grid, but it is overlapping the first set color. with below code.
Please suggest how can it be possible.
public void displayOption(Common _record, FormRowDisplayOption _options)
{
TestMPTempData TestMPTempDataColor = _record;
_options.affectedElementsByControl(TestMPTempData_POColor.id());
if(TestMPTempDataColor.POColor == TestColors::Yellow)
{
_options.backColor(WinAPI::RGB2int(255, 255, 0));
_options.textColor(WinAPI::RGB2int(255, 255, 0));
}
else if(TestMPTempDataColor.POColor == TestColors::Red)
{
_options.backColor(WinAPI::RGB2int(255, 0, 0));
_options.textColor(WinAPI::RGB2int(255, 0, 0));
}
else
{
_options.backColor(WinAPI::RGB2int(0, 255, 0));
}
_options.affectedElementsByControl(TestMPTempData_SOColor.id());
if(TestMPTempDataColor.SOColor == TestColors::Yellow)
{
_options.backColor(WinAPI::RGB2int(255, 255, 0));
_options.textColor(WinAPI::RGB2int(255, 255, 0));
}
else if(TestMPTempDataColor.SOColor == TestColors::Red)
{
_options.backColor(WinAPI::RGB2int(255, 0, 0));
_options.textColor(WinAPI::RGB2int(255, 0, 0));
}
else
{
_options.backColor(WinAPI::RGB2int(0, 255, 0));
}
super(_record, _options);
}