I am fairly confident this is most likely a “bug”. I’m using the sc_field_style() macro to set the background color of a field (in a grid). How do I set the color parameter using a variable?
example:
sc_field_style({field_name}, ‘#121212’); Working properly
$varColor = ‘#121212’;
sc_field_style({field_name}, $varColor); NOT working (I’m guessing the programmers never thought we may need to pass a $var through the macro)
reason == when using the calendar form, there are “options” to set the event color. I’m saving the calendar event color in the calendar table (tblCalendarEvents.eventColor): in a grid form, displaying all the events, using the onRecord event, I need to retreive the value stored in the table (tblCalendar.eventColor = #121212) and pass the hex color to the sc_field_style() macro.
Thanks to anyone who can enlighten me on how to pass a hex color through the macro.