Hello!
I'm pretty new in all of this, so sorry if I ask some dumb questions.
My assignment is to change colors for the records of employee calendar, based on some criteria. Color codes I store in the Map and using debugger I can see that displayOption() method is getting correct color codes.
My problem is when I open employee calendar form, and for the current period calendar isn't generated, then even for the rest of the periods displayOption haven't been triggered, but if I generate the calendar for the current period and reopen the calendar form, then colors are displayed for every period correctly. What can be the problem here?
I hope someone can understand what I wrote here!
My displayOptions method:
public void displayOption(Common _p1, FormRowDisplayOption _options)
{
int textColor = 0;
int backColor = 0;
[textColor, backColor] = PRMEmpWorkDaysColor.getForEmpWorkDays(_p1);
if (textColor != 0)
_options.textColor(textColor);
if (backColor != 0 )
_options.backColor(backColor);
super(_p1, _options);
}
And my period modified() method:
[Control("String")]
class PeriodIdFilter
{
public boolean modified()
{
boolean ret;
ret = super();
PRMPeriodId = PeriodIdFilter.valueStr();
PRMPeriod = PRMPeriod::find(PRMPeriodId);
filterStart = PRMPeriod.Start;
PRMEmpWorkDays_ds.executeQuery();
element.updateParts();
return ret;
}
}