We encounter a problem with the onRender event on Servoy 7.1. There was no problem with exactly the same code in Servoy 6.
- Code: Select all
function onRender(event) {
/** @type {JSRecord<db:/udm/companies>}*/
var rec = event.getRecord()
if (rec.is_active == 0)
{
event.getRenderable().fgcolor = '#C0C0C0';
}
}
When I make a search on a field which have an event "onRender", I have this message :
TypeError: Cannot read property "is_active" from
It's like if the getRecord() method was no more recognized by Servoy.
The interesting thing is that the problem happens only when I press the key "Enter" to run the research.
Thank you in advance for your help.