I have setup form , there i am setting my color code through color picker.
In my custom form i am using that setup data to apply the background color to my reference group control in display option method.
but it is not showing the color, is there any specific way to apply the color to the reference group control.
If i take string control it is working fine.
please the code below.
public void displayOption(Common _record, FormRowDisplayOption _options)
{
SurveyTable surveyDis = _record;
_options.affectedElementsByControl(GridHeader_RiskLevelRecid.id());
if (surveyDis.AsbestosStatus)
{
_options.backColor(StatusTable::find(surveyDis .AsbestosStatus).ColourCode);
}
super(_record, _options);
}
Thanks in advance,
Veer