Hello,
I have a display method on a table, that makes calls to several other tables. In forms grid I have field, that uses this display method. I also have cached this method on datasources init. Problem starts when I want to change color of some of the grid lines, where this field(that uses display method) is for example 0. So in datasources displayOption method I have a check that calls this display method once again for every line and checks if it returns 0 and it happens every time I refresh form.

Is there any way not to use this display method again or without need?
I thought of maybe adding a check to display method, where I would ask who called this method and if it's my form, then try to change color of that line. Or maybe making a map, that on the forms init I would fill with id and value from display method, so in the init it would call this display method twice for every line(to draw grid and fill my map), but afterwards on displayOption I could search for values in map.
But it seems that none of those choices would be good or improve performance.
Do you have any suggestions how to improve performance on this situation?
Regards
*This post is locked for comments
I have the same question (0)