I have an application in PowerBuilder 12.5.1, with a read-only grid datawindow, part of a master-detail (PFC linkage service).
I would like to highlight some fields that contain certain strings. To do that, I made a global function f_colorforkeywords, that receives the string and returns the background color, white or yellow. In the datawindow, tab background, I set the background color as a function, that calls my global function:
f_colorforkeywords( content_of_this_field )
This works very well, even from the point of view of performances, in the PowerBuilder IDE: whenever new data is loaded, the grid gets the colors where I want them. But, when I compile an executable and run it, the global function is not called at all.
I also tried adding the global function in the PBR file, no success.
What is happening?