I have a straightforward feature in an application, which is working,
but I feel that I haven't done it as efficiently as possible. Can
anyone tell me how I should have done it?
In a table of Courses, I have a field (c_status) showing whether the
course is Open, Closed, or Planned. Associated with this, I have a
"traffic light" indicator (c_status_light), i.e. just a circle
which is red, green, or amber. So if the course is open, the light
shows green, etc.
c_status_light is a calc field, result container, defined as:
The global fields (g_green_light, g_amber_light, g_red_light) are
containers, and in the startup script I say:
Go to field [course::g_green_light]
Insert picture ["green_light.gif"]
(etc., for the other 2 colours)
As I said at the start, it works, but it feels clumsy. Also, in a
server-based application, where is the correct place to store the
images? Should I put them in the same folder as the FM files
themselves? Does it matter?
Any suggestions appreciated!