Highlighting the default record

Something that’s worked well for me in FMP has been to place a calculated container field on a portal, then overlaying with transparent text fields. The container field displays a light pink colour if it happens to be the default record, an obvious visual cue for the user.

In Servoy I’ve created a global media field called gPink and have loaded a gif. However Servoy portal field placement doesn’t seem to be absolute. They jump around according to their own set of rules and one thing they avoid completely is placement of one field on top of another.

Am I understanding the limitations correctly? Is there a workaround for highlighting a default record?

how about a row background color calculation? In 2.1 you can give any form a formula that will color a row accordingly…

Hi Morley,

This thread may ‘highlight’ some options for you ! :-)

http://forum.servoy.com/viewtopic.php?t … sc&start=0

Cheers
Harry

An elegant solution with the flexibility to use it in different ways for different purposes. Much thanks, it works perfectly.

Call the calculation "servoy_row_bgcolor’. Make it a media type. Give the calc this code:

if (preferred == 1)
{
return '#FFCCCC';
}

Gives the “default” row a light pink background. Excellent.